Message9734
Hi. Some methods from time module don't have set a __module__ attribute. Well, it is set, but it is
set to None, which isn't useful at all. The following patch implements getModule for org.python.modules.time.Time.TimeFunctions, which returns the proper name of the module.
E:\Projects\repos\jython>jython
Jython 2.7b4 (default:3672e624962a, Feb 13 2015, 04:59:14)
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.8.0_40
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> time.time.__module__
>>> time.clock.__module__ |
|
Date |
User |
Action |
Args |
2015-03-29 18:29:46 | pcmanticore | set | recipients:
+ pcmanticore |
2015-03-29 18:29:46 | pcmanticore | set | messageid: <1427653786.9.0.865317498533.issue2303@psf.upfronthosting.co.za> |
2015-03-29 18:29:46 | pcmanticore | link | issue2303 messages |
2015-03-29 18:29:46 | pcmanticore | create | |
|