Message1348
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 |
|
Date |
User |
Action |
Args |
2008-02-20 17:17:37 | admin | link | issue1605023 messages |
2008-02-20 17:17:37 | admin | create | |
|