I've checked this in as r56707. It looks fine at cursory inspection; if someone wants to test the handling of encodings more thoroughly, be my guest.
--Guido On 8/3/07, Paul Colomiets <[EMAIL PROTECTED]> wrote: > Hi, > > I've just uploaded patch that fixes test_zipimport. > http://www.python.org/sf/1766592 > > I'm still in doubt of some str/bytes issues. Fix me if I'm wrong. > 1. imp.get_magic() should return bytes > 2. loader.get_data() should return bytes > 3. loader.get_source() should return str with encoding given from "# -*- > coding: something -*-" header > > How to achieve third without reinventing something? Seems that compiler > makes use of it something thought the ast, but I'm not sure. > > Currently it does PyString_FromStringAndSize(bytes) which should be > equivalent of str(the_bytes), and uses utf8 I think. > > -- > Paul. > _______________________________________________ > Python-3000 mailing list > [email protected] > http://mail.python.org/mailman/listinfo/python-3000 > Unsubscribe: > http://mail.python.org/mailman/options/python-3000/guido%40python.org > -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
