Message11585

Author zyasoft
Recipients progval, zyasoft
Date 2017-09-10.02:59:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1505012380.69.0.811608472905.issue2510@psf.upfronthosting.co.za>
In-reply-to
Content
So this seems to be a general problem in how we dispatch to a wide range of built-in functions. But in particular it does NOT apply to implementations that use PyBuiltinFunctionNarrow.

This can be seen in the os module, where the underlying implementation of PosixModule uses PyBuiltinFunctionNarrow for some functions, but not for others. In particular, one much like time.time that might be useful for monkey-patching/mocking is os.urandom, which cannot be so used. (At least without using functools.partial(my_urandom, os), but that's only needed for Jython.)
History
Date User Action Args
2017-09-10 02:59:40zyasoftsetmessageid: <1505012380.69.0.811608472905.issue2510@psf.upfronthosting.co.za>
2017-09-10 02:59:40zyasoftsetrecipients: + zyasoft, progval
2017-09-10 02:59:40zyasoftlinkissue2510 messages
2017-09-10 02:59:39zyasoftcreate