clobbering

Angus MacKay amackay at starvision.com
Tue Jun 29 15:57:39 EDT 1999


is there any way to get python to warn you when you clobber
a function refrence with a variable?

I was writing this and it vexed me for some time:

for dir in sys.path:
   dir(...)
...

it is silly user error but a flag to say warn if clobbering functions
with variables (or at lease builtin functions).

cheers, Angus.




More information about the Python-list mailing list