This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pjenvey
Recipients Arfrever, Marc.Abramowitz, Ronan.Lamy, brett.cannon, dino.viehland, eric.snow, jcea, ncoghlan, pjenvey
Date 2012-12-04.04:02:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1354593729.35.0.303585454389.issue15031@psf.upfronthosting.co.za>
In-reply-to
Content
From the perspective of Jython we'd want the easiest way to hook into this as possible of course, but I think that overriding marshal to handle a $py.class or whatever format would be a misappropriation of the marshal module

Jython actually has a slow, preliminary .pyc bytecode interpreter, so it needs marshal the way it is. Correct me if I'm wrong but I think the overriding a method of a Loader option could allow you to even have the import system support .pyc *and* $py.class at the same time in Jython (just by addding another Loader into the mix)

I'm not sure anyone would ever want to do that in practice, but it's probably worth considering.

Overriding a Loader method is probably the 'most work' for alternative implementations, right? But it's still fairly trivial
History
Date User Action Args
2012-12-04 04:02:09pjenveysetrecipients: + pjenvey, brett.cannon, jcea, ncoghlan, Arfrever, dino.viehland, eric.snow, Marc.Abramowitz, Ronan.Lamy
2012-12-04 04:02:09pjenveysetmessageid: <1354593729.35.0.303585454389.issue15031@psf.upfronthosting.co.za>
2012-12-04 04:02:09pjenveylinkissue15031 messages
2012-12-04 04:02:08pjenveycreate