Author zyasoft
Recipients progval, zyasoft
Date 2017-09-10.04:28:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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/ 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:43zyasoftsetmessageid: <>
2017-09-10 04:28:43zyasoftsetrecipients: + zyasoft, progval
2017-09-10 04:28:43zyasoftlinkissue2510 messages
2017-09-10 04:28:43zyasoftcreate