[Python-Dev] __file__

Antoine Pitrou solipsis at pitrou.net
Sun Feb 28 02:22:23 CET 2010


Le Fri, 26 Feb 2010 14:29:03 -0800, Guido van Rossum a écrit :
> 
> Byte-code only wasn't always supported. We added it knowing full well it
> had all those problems (plus, it locks in the Python version), simply
> because a certain class of developers won't stop asking for it. Their
> users are apparently too dumb to decode bytecode but smart enough to
> read source code, even if they don't understand it, and this knowledge
> could hurt them.

The idea that too much knowledge hurts users doesn't sound very Pythonic 
to me.

As I understand it, the people interested in bytecode-only distributions 
are commercial companies willing to ease support. Why don't they whip up 
a specialized importer, and perhaps make it available as a recipe or a 
PyPI module somewhere? The idea that we should provide built-in support 
for a stupid (non-)security mechanism sounds insane to me.

Finally, the sight of commercial companies not being able to do their 
work and begging open source projects to do it for them makes me *yawn*. 
If you aren't proficient or motivated enough to build your own internal 
commodities, perhaps you shouldn't do claim to do business at all.

regards

Antoine.



More information about the Python-Dev mailing list