Message5168
the errno returned while making a non existent
directory is 2 for cpython and 0 for jython
this upset error handling.
Python 2.5.4 (r254:67916, Feb 17 2009, 20:16:45)
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.mkdir('e/f')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 2] No such file or directory: 'e/f'
>>>
Jython 2.5.0 (Release_2_5_0:6476, Jun 16 2009, 13:33:26)
[OpenJDK Client VM (Sun Microsystems Inc.)] on java1.6.0_0
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.mkdir('e/f')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/gaddo/jython/Lib/os.py", line 309, in mkdir
raise OSError(err, msg, path)
OSError: [Errno 0] couldn't make directory: 'e/f'
>>> |
|
Date |
User |
Action |
Args |
2009-09-14 21:06:33 | gaddo | set | recipients:
+ gaddo |
2009-09-14 21:06:33 | gaddo | set | messageid: <1252962393.68.0.129416535055.issue1470@psf.upfronthosting.co.za> |
2009-09-14 21:06:33 | gaddo | link | issue1470 messages |
2009-09-14 21:06:33 | gaddo | create | |
|