Message10994

Author stefan.richthofer
Recipients stefan.richthofer, teeohhem
Date 2016-12-01.00:17:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1480551455.66.0.823027262427.issue2535@psf.upfronthosting.co.za>
In-reply-to
Content
Tom, as preparation to work on #527524 I recently looked into the part of Jython responsible to generate class-files. However I suppose I could fix this one too. The question is, how should the files in the stacktrace be named?

- The JVM usually prints filenames without path, e.g. plainly 'PyObject.java'.

- CPython usually prints full, absolute path, e.g. '/usr/lib/python2.7/platform.py'.

So in a sense Java and Python conventions clash here.

Maybe the best compromise is to store paths relatively to Jython's build-directory (i.e. dist) and display them somehow like '<jython-home>/Lib/platform.py'.
Files not in a Jython-subfolder can continue to use CPython-style, since they are likely just compiled locally.

Also, we should have a flag or something in compileall.py to specify a format, e.g. a base-path relatively from which filenames should be stored in generated classfiles.
History
Date User Action Args
2016-12-01 00:17:35stefan.richthofersetmessageid: <1480551455.66.0.823027262427.issue2535@psf.upfronthosting.co.za>
2016-12-01 00:17:35stefan.richthofersetrecipients: + stefan.richthofer, teeohhem
2016-12-01 00:17:35stefan.richthoferlinkissue2535 messages
2016-12-01 00:17:35stefan.richthofercreate