From: Samuele P. <ped...@bl...> - 2002-02-25 18:23:01
|
No this one is not a bug, chdir is not supported by Jython. Because it is not supported by Java. We could workaround but there is no clear win in that. It should be noted that while Jython is an implementation of Python and it is a goal that portable code between Python and Jython (www.anygui.org is example) can be written, it is not a goal that Python code written without thinking about Jython can be always ported, especially for shell-programming-like programs. Jython is Python for Java as a platform and tries to follow the platform philosophy without workarounding too much. So there are tasks for which Python is good and Jython not so much, changing this is a low priority thingy. regards, Samuele Pedroni. ----- Original Message ----- From: Dinu Gherman <gh...@da...> To: <jyt...@li...> Sent: Monday, February 25, 2002 6:22 PM Subject: [Jython-users] OSError: [Errno 0] chdir not supported in Java? > Hi, > > I'm just starting to use Jython on OS X and run into several > problems, obne of them being this: > > [localhost:~] dinu% jython > Jython 2.1 on java1.3.1 (JIT: null) > Type "copyright", "credits" or "license" for more information. > >>> import os > >>> os.chdir('..') > Traceback (innermost last): > File "<console>", line 1, in ? > File "/Applications/Additions/Jython-2.1/Lib/javaos.py", line 56, in chdir > OSError: [Errno 0] chdir not supported in Java: .. > >>> > > Any ideas? > > Thanks, > > Dinu > > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |