Paul Rubin wrote: > Steve Holden <[EMAIL PROTECTED]> writes: >>> Python even leaks the index variable of list comprehensions (I've >>> mostly stopped using them because of this), though that's a >>> recognized wart and is due to be fixed. >>> >> Wow, you really take non-pollution of the namespace seriously. I agree >> it's a wart, but it's one I have happily worked around since day one. > > Well, the obvious workaround is just say "list(<some genexp>)" > instead of [<the same genexp>] so that's what I do.
I think I'll start calling you Captain Sensible. But you are right, it does avoid that extra little potential for errors. regards Steve -- 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 ------------- -- http://mail.python.org/mailman/listinfo/python-list