Proposal: add sys to __builtins__
Michael Hoffman
cam.ac.uk at mh391.invalid
Fri Sep 2 05:19:06 EDT 2005
MrJbQ7 wrote:
> Steve Holden wrote:
>
>>I wonder if it would be worth special-casing the AttributeError [snip]
>
> What is it that Tim Peters said? "Special cases aren't special
> enough..."
That suggestion is a little too much magic for me.
> Besides, a better way is to use your ~/.pythonrc file for customizing
> according to your needs.
>
> A simple:
>
> echo "import sys, os" >> ~./pythonrc
>
> will do the job.
Until someone else tries to use your script or module.
--
Michael Hoffman
More information about the Python-list
mailing list