Issue2303
Created on 2015-03-29.18:29:46 by pcmanticore, last changed 2015-04-04.01:21:07 by alex.gronholm.
File name |
Uploaded |
Description |
Edit |
Remove |
time_module.patch
|
pcmanticore,
2015-03-29.18:29:46
|
|
|
|
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
|
|
Date |
User |
Action |
Args |
2015-04-04 01:21:07 | alex.gronholm | set | status: open -> closed resolution: fixed messages:
+ msg9751 nosy:
+ alex.gronholm |
2015-03-30 20:30:41 | Arfrever | set | nosy:
+ Arfrever |
2015-03-29 18:29:46 | pcmanticore | create | |
|