OOP / language design question

cctv.star at gmail.com cctv.star at gmail.com
Tue Apr 25 07:08:31 EDT 2006


Heiko Wundram wrote:
> Because sometimes you don't want to call the base classes constructors?
Sounds strange to me at the moment, but I'll try to adjust to this
thought.

> Python zen says: "Better explicit than implicit," and in this case it hits
> the nail on the head. Better to see right away what your code does (the
> explicit call to the base class), than to have to work around calling a bases
> constructor if you don't want to call it.
Thanks, that explains it somehow - at least, it's consistent with
explicit "self".
I think I'll need some shift in thinking after C++.




More information about the Python-list mailing list