[Python-Dev] __file__ and bytecode-only

Antoine Pitrou solipsis at pitrou.net
Thu Mar 4 04:54:22 CET 2010


Le Thu, 04 Mar 2010 16:39:03 +1300,
Greg Ewing <greg.ewing at canterbury.ac.nz> a écrit :
> Antoine Pitrou wrote:
> 
> > Unless the .py files arrange to raise a syntax error on compiling.
> 
> I guess that prevents a total disaster, but the
> program is still broken and you have to hunt down
> the offending files and fix the timestamps -- if
> it's even evident what the problem is and how to
> fix it.
> 

Bytecode-only distributions are supposed to be created by the
vendor/distributor. It's up to him/her to get things right.

Regards

Antoine.




More information about the Python-Dev mailing list