From: Dinu G. <gh...@da...> - 2002-02-26 08:02:07
|
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 |