Message1484

Author pekka.klarck
Recipients
Date 2007-05-21.06:53:21
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
1) I really like Jython doing type checking in os.path. The resulting error message is much more clearer than what you get in CPython. Are there some cases where a valid input would not be accepted? If not, I wouldn't change the behavior at all. If yes, I'd first try to make the type checking work correctly in those cases too.


2) In any case Java based exception should not come through. Otherwise code written for CPython may not work correctly. For example following try/except catches only Python exceptions but NPE would go through and possibly crash the whole program.

try:
    os.path.abspath(path)
except Exception, err:
    print "Got exception:", str(err)


3) This discussion should really happen in jython-devel.

History
Date User Action Args
2008-02-20 17:17:44adminlinkissue1661700 messages
2008-02-20 17:17:44admincreate