Proposal: add sys to __builtins__

Michael Hoffman cam.ac.uk at mh391.invalid
Fri Sep 2 10:11:37 EDT 2005


tiissa wrote:

> A developper should not be too lazy to add one small line in a complete
> script/module.

To the contrary, I agree with Larry Wall that laziness is one of the 
cardinal virtues of a programmer. Although my personal desire to be lazy 
is not at issue here--I always start new scripts and modules from a 
template that includes import sys.

Would you argue that the language is superior because half of its 
modules must have "import sys" at the beginning, although sys is already 
imported? The only difference is that the namespace is not exposed by 
default. I suggest that the default be changed.

It would simplify introductions to the language as well. In the current 
tutorial it is necessary to use "import sys" before it has time to 
explain modules and importing.

> Besides your entire justification to this proposal was based on shell
> one-liners, not script or modules.

Sorry, that's incorrect; please go back and read the original post again.
-- 
Michael Hoffman



More information about the Python-list mailing list