Nick Coghlan <ncogh...@gmail.com> added the comment:

I have updated the bitbucket repo with changes to address most of Benjamin's 
review comments.

A few points of note:
- I agree in principle with the idea of splitting Yield and YieldFrom into 
distinct AST nodes, but I'd prefer to focus on getting the current 
implementation into the main repo first
- in cleaning up the handling of missing send/close/throw attributes on 
subiterators I discovered that the PyObject_CallMethod* APIs were discarding 
exception information and coercing everything to a terse AttributeError. The 
branch now changes them to allow the error reported by the underlying call to 
PyObject_GetAttr to pass through unmodified.
- the generator close() method treats an AttributeError as expected when 
looking for a close() method on the subiterator, but uses WriteUnraisable to 
deal with anything else.
- I share Benjamin's suspicion that some of the INCREF/DECREF pairs in 
genobject.c aren't actually necessary, but I don't think it's worth messing 
with them at this stage.

I haven't looked at Zbyszek's proposed doc changes at this point - the pull 
request has a lot of irrelevant line wrapping changes in it, so it makes it 
hard to review.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11682>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to