Issue2380
Created on 2015-07-23.07:35:32 by tchaypo, last changed 2015-10-07.11:19:40 by darjus.
msg10162 (view) |
Author: James Polley (tchaypo) |
Date: 2015-07-23.07:35:31 |
|
⏚ 1d [:/tmp] [default] $ cat version_info.py
import sys
import platform
print platform.python_implementation()
print type(sys.version_info)
print sys.version_info
⏚ 1d [:/tmp] [default] $ python2.6 version_info.py
CPython
<type 'tuple'>
(2, 6, 9, 'final', 0)
⏚ 1d [:/tmp] [default] $ python2.7 version_info.py
CPython
<type 'sys.version_info'>
sys.version_info(major=2, minor=7, micro=6, releaselevel='final', serial=0)
⏚ 1d [:/tmp] [default] $ jython version_info.py
warning: /Users/james/.jython is a directory, not a file
Jython
<type 'tuple'>
(2, 7, 0, 'final', 0)
⏚ 1d [:/tmp] [default] $
|
msg10204 (view) |
Author: Jim Baker (zyasoft) |
Date: 2015-09-02.22:24:10 |
|
Easy enough to fix. Similar code seen here: https://github.com/jythontools/jython/blob/master/src/org/python/modules/posix/PyStatResult.java#L28
|
msg10317 (view) |
Author: Darjus Loktevic (darjus) |
Date: 2015-10-07.11:18:40 |
|
Fixed in 7745:9adfcf913dff, should be released with 2.7.1
➜ jython ./dist/bin/jython
Jython 2.7.1 (default:39fa8f188c32+, Oct 7 2015, 22:14:34)
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.7.0_80
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.version_info
sys.version_info(major=2, minor=7, micro=1, releaselevel='beta', serial=0)
>>> sys.version_info.serial
0
|
|
Date |
User |
Action |
Args |
2015-10-07 11:19:40 | darjus | set | status: open -> closed |
2015-10-07 11:18:40 | darjus | set | assignee: darjus resolution: fixed messages:
+ msg10317 nosy:
+ darjus |
2015-09-02 22:24:10 | zyasoft | set | nosy:
+ zyasoft messages:
+ msg10204 |
2015-07-23 13:15:17 | alex.gronholm | set | milestone: Jython 2.7.1 |
2015-07-23 07:35:50 | tchaypo | set | components:
+ Core versions:
+ Jython 2.7 |
2015-07-23 07:35:32 | tchaypo | create | |
|