Message11586
I revisited PosixModule, and I believe I characterized that incorrectly with respect to os.urandom. In general, the technique used by the os module to import from a backing implementation (in this case Java-based, using ClassDictInit) seems to remove this PyMethod distinction. In particular, it can be readily done by renaming org.python.modules.time to org.python.modules._time, then adding a Lib/time.py that
from _time import *
which simply demonstrates that Python import semantics work as expected at this point.
So as with the time module, we may have other cases of unpatchable functions in other parts of the stdlib implemented by org.python.modules, but this can be readily resolved at least two different ways. |
|
Date |
User |
Action |
Args |
2017-09-10 04:28:43 | zyasoft | set | messageid: <1505017723.98.0.752187140285.issue2510@psf.upfronthosting.co.za> |
2017-09-10 04:28:43 | zyasoft | set | recipients:
+ zyasoft, progval |
2017-09-10 04:28:43 | zyasoft | link | issue2510 messages |
2017-09-10 04:28:43 | zyasoft | create | |
|