PEP 3107 and stronger typing (note: probably a newbie question)
steve at holdenweb.com
Mon Jul 9 02:34:40 CEST 2007
Paul Rubin wrote:
> Steven D'Aprano <steve at REMOVE.THIS.cybersource.com.au> 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.
Maybe we just have different styles, and I naturally tend to write in
smaller scopes than you do.
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------
More information about the Python-list