Philip Jenvey added the comment:

>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

----------
nosy: +pjenvey

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15031>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to