Message1329
This appears to be happening because the object returned by "__doc__" is a PyGetSetDescr. This in turn is queried for the doc value which calls getDoc. This in turn appears to return the DocDescriptor without any subsequent calls. Im not sure which is the right fix is yet:
1. Fix getDoc to check for a descriptor?
2. Instrument PyType type___findattr so that it does something different with doc?
3. When __doc__ is set with a descriptor, replace the default descriptor?
4. etc...
PyClass interacts correctly with the descriptor, yet it has a different set of logic so Im not sure if there is anything to emulate there.
Another question is if the DocDescr should be detectable as a decsriptor? It does not appear to state that it is when isDataDescr is invoked. Maybe this too is a bug or Im not seeing the code straight at this moment....
leouser |
|
Date |
User |
Action |
Args |
2008-02-20 17:17:37 | admin | link | issue1605006 messages |
2008-02-20 17:17:37 | admin | create | |
|