[Python-Dev] PEP 8 updates/clarifications

Steve Holden steve at holdenweb.com
Thu Dec 15 17:47:17 CET 2005


François Pinard wrote:
> [Guido van Rossum]
> 
> 
>>In a module where you import 'foo' I don't understand why you would
>>name a local variable 'foo'. So I'm not sure how the conflict would
>>arise.
> 
> 
> It goes the other way around.  First suppose, following an example in 
> a previous message, that I have a lot of variables named 'text', as this 
> is kind of the default name everywhere for the text being handled in 
> a function, in a program handling text.
> 
[lots of hypothetical talk about the addition of the 'text' module]

Seems to me your solution is obvious:

   import text as somethingelse

regartds
  Steve
-- 
Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC                     www.holdenweb.com
PyCon TX 2006                  www.python.org/pycon/



More information about the Python-Dev mailing list