Message9734

Author pcmanticore
Recipients pcmanticore
Date 2015-03-29.18:29:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1427653786.9.0.865317498533.issue2303@psf.upfronthosting.co.za>
In-reply-to
Content
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__
History
Date User Action Args
2015-03-29 18:29:46pcmanticoresetrecipients: + pcmanticore
2015-03-29 18:29:46pcmanticoresetmessageid: <1427653786.9.0.865317498533.issue2303@psf.upfronthosting.co.za>
2015-03-29 18:29:46pcmanticorelinkissue2303 messages
2015-03-29 18:29:46pcmanticorecreate