[Python-Dev] PEP 340 - possible new name for block-statement

Nick Coghlan ncoghlan at gmail.com
Sat Apr 30 01:55:22 CEST 2005


Pierre Barbier de Reuille wrote:
> Mmmmh ... why introduce a new flag ? Can't you just test the presence of 
> the "__error__" method ? This would lift your problem wouldn't it ?

Perhaps - it would require doing something a little tricky with generators to 
allow the programmer to specify whether the generator should be finalised or not.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://boredomandlaziness.skystorm.net


More information about the Python-Dev mailing list