Message800

Author cgroves
Recipients
Date 2007-04-18.07:59:33
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Leo's patch makes Super2.__init__ return java.lang.Object's constructor.  Calling Super2.__init__(self) from pySubclass only works because PyReflectedConstructor's __call__ interally looks up the proxy class of self which has access to the protected constructor.  I don't think that's any better than the problem the patch fixes.  It exposes incorrect information and it's really confusing code.

We're essentially hosed here because subclasses calling protected constructors is a partial visibility concept Python just doesn't have.  Maybe we could make the Python super builtin give access to the proxy class's dict if called with a PyJavaClass?
History
Date User Action Args
2008-02-20 17:17:12adminlinkissue649582 messages
2008-02-20 17:17:12admincreate