clobbering

Angus MacKay amackay at starvision.com
Tue Jun 29 21:57:39 CEST 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