A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2000-May/004290.html below:

[Python-Dev] py_compile and CR in source files

[Python-Dev] py_compile and CR in source files [Python-Dev] py_compile and CR in source filesSkip Montanaro skip@mojam.com (Skip Montanaro)
Fri, 26 May 2000 04:39:39 -0500 (CDT)
    Greg> Arrghh!  This means that Distutils will either have to
    Greg> check/convert line-endings at build-time (hey, finally, a good
    Greg> excuse for the "build_py" command), or implicitly compile modules
    Greg> by importing them (instead of using 'py_compile.compile()').

I don't think you can safely compile modules by importing them.  You have no
idea what the side effects of the import might be.

How about fixing py_compile.compile() instead?

-- 
Skip Montanaro, skip@mojam.com, http://www.mojam.com/, http://www.musi-cal.com/
"We have become ... the stewards of life's continuity on earth.  We did not
ask for this role...  We may not be suited to it, but here we are."
- Stephen Jay Gould



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4