
May 26, 2000
3:06 p.m.
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 py_compile.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