![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveRe: __init__() not called automatically
From: Paul McNett <p@ulmcnett.com>
Date: Thu May 26 2005 - 06:55:52 CEST
Sriek wrote:
What do you mean by automatically? :
Python 2.4.1 (#2, May 5 2005, 09:45:41)
So __init__ is definitely called upon instantiation. It is true that if
class B(A):
> I'm sure there must be ample reason
It isn't that much practical burden, and IMO it makes perfect sense.
> Similarly, why do we have to explicitly use the 'self' keyword
This is closer to a wart, IMO, but once you've used Python for a while
> Every kind of help would be welcome.
You've found the right place to hang out. Welcome!
-- pkm ~ http://paulmcnett.comReceived on Thu Sep 29 16:14:03 2005 |