Author amaury.forgeotdarc
Recipients ajaksu2, amaury.forgeotdarc, arigo, donmez, gideon, rhettinger, terry.reedy
Date 2008-08-30.22:55:36
SpamBayes Score 3.11443e-05
Marked as misclassified No
Message-id <1220136940.43.0.85229512945.issue3720@psf.upfronthosting.co.za>
In-reply-to
Content
> 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)
History
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: <1220136940.43.0.85229512945.issue3720@psf.upfronthosting.co.za>
2008-08-30 22:55:39amaury.forgeotdarclinkissue3720 messages
2008-08-30 22:55:38amaury.forgeotdarccreate