Re: For review: PEP 343: Anonymous Block Redux and GeneratorEnhancements

2005-06-05 Thread Nicolas Fleury
Delaney, Timothy C (Timothy) wrote: > Nicolas Fleury wrote: >>def getFirstLine(filename): >> with opening(filename) as file >> return file.readline() > > Your tastes definitely disagree with the majority of Python programmers > then, including Guido. Scoping is defined in Python by indenta

Re: For review: PEP 343: Anonymous Block Redux and GeneratorEnhancements

2005-06-05 Thread Paul Rubin
"Delaney, Timothy C (Timothy)" <[EMAIL PROTECTED]> writes: > Be sure to read the referenced PEPs (and the ones referenced from them) > - they contain a lot of history. Also read PEP 346 for a competing PEP > to PEPs 340 and 343 that gradually converged to PEP 343 - most > importantly, it contains t

Re: For review: PEP 343: Anonymous Block Redux and GeneratorEnhancements

2005-06-05 Thread Mike Meyer
Paul Rubin writes: > "Delaney, Timothy C (Timothy)" <[EMAIL PROTECTED]> writes: >> Be sure to read the referenced PEPs (and the ones referenced from them) >> - they contain a lot of history. Also read PEP 346 for a competing PEP >> to PEPs 340 and 343 that gradually conv

RE: For review: PEP 343: Anonymous Block Redux and GeneratorEnhancements

2005-06-05 Thread Delaney, Timothy C (Timothy)
Nicolas Fleury wrote: > def getFirstLine(filename): > with opening(filename) as file > return file.readline() Your tastes definitely disagree with the majority of Python programmers then, including Guido. Scoping is defined in Python by indentation. If you want the above sort of thing,