Zen of Python

Paul Rubin http
Sat Jan 22 12:46:01 EST 2005


"Andrew Koenig" <ark at acm.org> writes:
> Actually, I don't think so.  If you intend for it to be impossible for "z = 
> x" to refer to the x in the list comprehension, you shouldn't mind putting 
> in "from __future__ import lexical_comprehensions."  If you don't intend for 
> it to be impossible, then the program *should* be taken out and shot.

I shouldn't have to say "from __future__ import <whatever feature>"
unless I actually intend to use the feature.   The program I posted
neither uses lexical comprehensions nor depends on their absence.  So
it shouldn't have to import anything from __future__.



More information about the Python-list mailing list