PEP 3107 and stronger typing (note: probably a newbie question)

Paul Rubin http
Mon Jul 9 00:52:29 CEST 2007

Steven D'Aprano <steve at> writes:
> As far as I can see, the only difference is that the list comp variable
> isn't explicitly created with a statement of the form "name = value". Why
> is that a problem?

I don't know that listcomp vars are worse problem than other vars;
however there is an easy workaround for the listcomp vars so I use it.
If there was a way to restrict the scope of other local vars (I gave
examples from other languages of how this can be done), I'd use that too.

More information about the Python-list mailing list