Message1348

Author leouserz
Recipients
Date 2006-12-22.18:55:51
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
this is a wicked problem.  I want to state this, that __new__ does appear to be called in the metaclass.  It seems though that __spam__ is not part of the class __dict__ when returned. 

Some things noticed:
1. Look at the PyNewWrapper for __new__ in PyType.  Notice that the getDict call return an empty Dictionary/PyStringMap.
2. Try accessing the dict of the PyType like so:
PyType pt = (PyType)(value returned from call)
System.out.println(pt.dict);

you should see __spam__ in it.

another odd thing, is that the name of the type returned is the metaclasses name.  Will continue investigation.

leouser
History
Date User Action Args
2008-02-20 17:17:37adminlinkissue1605023 messages
2008-02-20 17:17:37admincreate