Message12218
In Jython 2.7.1, I just simply use the code
>>>import platform
>>>platform.system()
and it return Error
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\jython2.7.1\Lib\platform.py", line 1396, in system
return uname()[0]
File "C:\jython2.7.1\Lib\platform.py", line 1213, in uname
machine = os.uname()[4]
at org.python.core.PyString.<init>(PyString.java:57)
at org.python.core.PyString.<init>(PyString.java:70)
at org.python.core.PyString.<init>(PyString.java:74)
at org.python.core.Py.newString(Py.java:647)
at org.python.modules.posix.PosixModule.uname(PosixModule.java:1173)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: Cannot create PyString with non-byte value |
|
Date |
User |
Action |
Args |
2018-12-31 04:49:10 | k870611 | set | recipients:
+ k870611 |
2018-12-31 04:49:09 | k870611 | set | messageid: <1546231749.47.0.162176456291.issue2726@roundup.psfhosted.org> |
2018-12-31 04:49:09 | k870611 | link | issue2726 messages |
2018-12-31 04:49:09 | k870611 | create | |
|