Proposal: add sys to __builtins__

Tom Anderson twic at urchin.earth.li
Mon Sep 26 15:06:05 EDT 2005


On Sun, 25 Sep 2005, James Stroud wrote:

> I'm into *real* purity. I would rather begin every script:
>
>  from python import list, str, dict, sys, os
>
> Oh wait. I only use dict in less than 50% of my scripts:
>
>  from python import list, str, sys, os
>
> That's better.

What? How exactly is that pure? "from x import y" is bletcherosity 
incarnate! You should do:

import python

s = python.str(5)
# etc

And don't let me see you importing like that again!

tom

-- 
90% mental, 25% effort, 8% mathematics



More information about the Python-list mailing list