Re: Problem with sub-classing
- From: Peter Otten <__peter__@xxxxxx>
- Date: Mon, 17 Jul 2006 22:18:57 +0200
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
.
- References:
- Problem with sub-classing
- From: Bernard Lebel
- Re: Problem with sub-classing
- From: Peter Otten
- Re: Problem with sub-classing
- From: Bernard Lebel
- Problem with sub-classing
- Prev by Date: Re: Track keyboard and mouse usage
- Next by Date: Re: Track keyboard and mouse usage
- Previous by thread: Re: Problem with sub-classing
- Next by thread: pytables - best practices / mem leaks
- Index(es):