Carl Banks wrote:There is a significant difference: imagine B is a base type and C a
> You know, Python's __init__ has almost the same semantics as C++
> constructors (they both initialize something that's already been
> allocated in memory, and neither can return a substitute object).
subclass of B:
When you create an object of type C in Python, while B.__init__ is
In C++ when the B() constructor is executing the object is an object of
In other words, the object is constructed in Python before any __init__ is
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.