[Python-Dev] 'shadowing' builtins

Skip Montanaro skip@mojam.com (Skip Montanaro)
Mon, 17 Jul 2000 14:58:11 -0500 (CDT)


    Thomas> He decided to go to David Beazly's python introduction, and he
    Thomas> was suprised at how you can do 'None = 4'. And when I explained
    Thomas> it's harmless (because it's local, not global) he was suprised
    Thomas> it didn't generate a warning. And, well, why doesn't it generate
    Thomas> a warning?

I wrote a script some time ago to print these warnings.  Search

    http://www.musi-cal.com/~skip/python/

for the string "hiding builtin names"...

Skip