Message11077
I would like to fix breakage of wraps by 'simply' adding a __module__ field to PyReflectedFunction and filling it appropriately in PyJavaType. (Remember to adjust PyReflectedFunction.copy and PyReflectedFunction.traverse accordingly).
In long term, Jim's solution is more complete, but is also a wider change and might take some time to be done right. Given that e.g. wraps is frequently used we should maybe add __module__ as a quick fix and improve on this later on.
Maybe an 'easy', preliminary "full fix" for custom attributes of PyReflectedFunction would be to let PyReflectedFunction have __dict__ (maybe lazily, on demand). |
|
Date |
User |
Action |
Args |
2017-02-06 17:26:47 | stefan.richthofer | set | messageid: <1486402007.6.0.621764986195.issue2476@psf.upfronthosting.co.za> |
2017-02-06 17:26:47 | stefan.richthofer | set | recipients:
+ stefan.richthofer, zyasoft, seletz |
2017-02-06 17:26:47 | stefan.richthofer | link | issue2476 messages |
2017-02-06 17:26:46 | stefan.richthofer | create | |
|