From: Samuele P. <pe...@in...> - 2002-02-26 10:33:41
|
Have you seen that it requires a JNI lib? Samuele Pedroni. ----- Original Message ----- From: Dinu Gherman <gh...@da...> To: Samuele Pedroni <pe...@in...> Cc: <jyt...@so...> Sent: Tuesday, February 26, 2002 9:01 AM Subject: Re: [Jython-users] OSError: [Errno 0] chdir not supported in Java? > Samuele Pedroni <ped...@bl...>: > > > 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. > > > Ciao Samuele, > > I see this has been asked before already on this list. > Sorry for not checking earlier! But I also see that it > is not impossible to implement chdir and friends in > Java despite its security concerns as the following > should make clear: > > http://www.hio.hen.nl/java/nl/nl/hen/ict/unix/Unix.html > > Needless to say, I'd opt for Jython being more similar > to Python instead of Java, if for no other reason than > the higher similarity of the "Jython" string to "Python" > than to "Java"! ;-) > > Seriously, if it's possible to use chdir-like stuff why > not add it and make both happy, Java people missing it > *and* Python folks reusing their scripts...? Maybe some > Java guys will be more inclined to being dragged over > to Python? > > Dinu > > |