Tino Wildenhain wrote:
Hi all,
Brian Lloyd wrote:
There [are] concerns about namespace pollution and stomping on variables that people may have currently defined
It's proper to address this. But some aspects of tino's or others' proposals are probably less problematic than others, and the plan could perhaps attempt to have different levels of ambition, so that we increase the probability of getting *some* progress. Maybe tino might want to consider splitting the patch into two patches that separately address underscore aliasing and custom loop variables?
Hamish Lawson
Right - these are the kinds of decisions I'd like to see hammered out in the fishbowl project area.
This seems logic at the first glance. But keep in mind the "pollution" of the namespace is more caused by the patch to remove the hypenations.
Yup.
The second part shows only up, if a programmer _decides_ to use it. E.g. if you dont use the prefix argument, it is still "sequence" and therefore perfectly compatible with code assuming this. If you, however decide to use the prefix, you should know what you do as always.
But in this case, you are being explicit and it should be easy to pick a name that doesn't exist. The prefix part of the patch makes the aliasing part of the patch unnecessary, since you can always get nice names using the prefix attribute. Jim -- Jim Fulton mailto:jim@digicool.com Python Powered! Technical Director (888) 344-4332 http://www.python.org Digital Creations http://www.digicool.com http://www.zope.org