This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients ajaksu2, amaury.forgeotdarc, arigo, donmez, gideon, rhettinger, terry.reedy
Date 2008-08-30.22:55:36
SpamBayes Score 3.1144304e-05
Marked as misclassified No
Message-id <>
> Amaury, if you decide to go forward with this, please clean-up the 
> patches to eliminate common subexpressions. 
I already considered this, but generated machine code was identical, so
I chose the more readable code.

> Wonder if there is an alternate solution that keeps the next slot 
> filled with something that raises an Attribute error.

That's an interesting idea, and not difficult to implement, see attached
patch. The penalty here is an extra comparison in PyIter_Check(). And no
change in the event loop...
Armin's crashers now correctly raise a TypeError (and the final patch
should convert them as unit tests)
Date User Action Args
2008-08-30 22:55:40amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, arigo, rhettinger, terry.reedy, ajaksu2, donmez, gideon
2008-08-30 22:55:40amaury.forgeotdarcsetmessageid: <>
2008-08-30 22:55:39amaury.forgeotdarclinkissue3720 messages
2008-08-30 22:55:38amaury.forgeotdarccreate