[Python-Dev] py_compile and CR in source files (original) (raw)
Greg Ward gward@mems-exchange.org
Fri, 26 May 2000 11:06:09 -0400
- Previous message: [Python-Dev] py_compile and CR in source files
- Next message: [Python-Dev] py_compile and CR in source files
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 26 May 2000, Skip Montanaro said:
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.
Yeah, that's my concern.
How about fixing pycompile.compile() instead?
Would be a good thing to do this for Python 1.6, but I can't go back and fix all the Python 1.5.2 installations out there.
Does anyone know if any good reasons why 'import' and 'py_compile.compile()' are different? Or is it something easily fixable?
Greg
- Previous message: [Python-Dev] py_compile and CR in source files
- Next message: [Python-Dev] py_compile and CR in source files
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]