[Python-checkins] r76233 - python/branches/py3k/Lib/importlib/_bootstrap.py

Nick Coghlan ncoghlan at gmail.com
Fri Nov 13 10:57:48 CET 2009


Brett Cannon wrote:
> On Thu, Nov 12, 2009 at 16:47, benjamin.peterson
> <python-checkins at python.org> wrote:
>> Author: benjamin.peterson
>> Date: Fri Nov 13 01:45:32 2009
>> New Revision: 76233
>>
>> Log:
>> no need to translate newlines in python code anymore
> 
> Sweet! Thanks for this, Benjamin! I always hated having this hack in
> the code since I knew it was a nasty performance hit. I was planning
> on trying to solve it at some point. Glad you beat me to it. =)

Whereas runpy.run_module was probably just plain broken in some cases...
(most of the time it would have been OK, as pkgutil's PEP 302 style
importer for the file system uses rU mode to read the source files, but
runpy itself certainly didn't have anything like the importlib workaround)

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------


More information about the Python-checkins mailing list