Message11585
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.) |
|
Date |
User |
Action |
Args |
2017-09-10 02:59:40 | zyasoft | set | messageid: <1505012380.69.0.811608472905.issue2510@psf.upfronthosting.co.za> |
2017-09-10 02:59:40 | zyasoft | set | recipients:
+ zyasoft, progval |
2017-09-10 02:59:40 | zyasoft | link | issue2510 messages |
2017-09-10 02:59:39 | zyasoft | create | |
|