Issue2303

classification
Title: Some time methods lack don't have set the __module__ attributte
Type: behaviour Severity: normal
Components: Library Versions: Jython 2.7
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: Arfrever, alex.gronholm, pcmanticore
Priority: Keywords: patch

Created on 2015-03-29.18:29:46 by pcmanticore, last changed 2015-04-04.01:21:07 by alex.gronholm.

Files
File name Uploaded Description Edit Remove
time_module.patch pcmanticore, 2015-03-29.18:29:46
Messages
msg9734 (view) Author: ClaudiuPopa (pcmanticore) Date: 2015-03-29.18:29:46
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__
msg9751 (view) Author: Alex Grönholm (alex.gronholm) Date: 2015-04-04.01:21:07
Fixed in 4722f297d15c
History
Date User Action Args
2015-04-04 01:21:07alex.gronholmsetstatus: open -> closed
resolution: fixed
messages: + msg9751
nosy: + alex.gronholm
2015-03-30 20:30:41Arfreversetnosy: + Arfrever
2015-03-29 18:29:46pcmanticorecreate