Bernard Lebel wrote:

> Okay, that make sense.
> 
> Now the question is: regarding the re-binding behavior, is this
> actually problematic? By that I mean that is it good coding practice
> to avoid this issue altogether as much as possible, or is it okay to
> live with it if you use the __init__ argument trick you have shown?

I suggested the "argument trick" for diagnosis only. 

One /good/ coding practice is to choose descriptive names for (toplevel)
objects. Another is to avoid

from module import *

style imports which tend to be the most common source of name clashes.


Peter



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to