Message4801
Python
>>> os.stat(None)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: coercing to Unicode: need string or buffer, NoneType found
Jython
>>> os.stat(None)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "...\jython2.5rc3\Lib\os.py", line 478, in stat
return stat_result.from_jnastat(_posix.stat(abs_path))
at org.python.core.PyString.<init>(PyString.java:31)
at org.python.core.PyString.<init>(PyString.java:38)
at org.python.core.Py.newString(Py.java:550)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
java.lang.IllegalArgumentException: java.lang.IllegalArgumentException:
Cannot create PyString from null!
I guess Jython should also be raising TypeError? |
|
Date |
User |
Action |
Args |
2009-06-06 20:28:38 | Christof | set | recipients:
+ Christof |
2009-06-06 20:28:37 | Christof | set | messageid: <1244320117.89.0.632349321112.issue1369@psf.upfronthosting.co.za> |
2009-06-06 20:28:37 | Christof | link | issue1369 messages |
2009-06-06 20:28:37 | Christof | create | |
|