Proposal: add sys to __builtins__

  • Thread starter Michael Hoffman
  • Start date
J

James Stroud

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.



I was just stating your proposal didn't really solve anything. A good
editor/template and .pythonrc already save you the typing of 'import
sys' in scripts for the former and shell command for the latter.

--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095

http://www.jamesstroud.com/
 
T

Tom Anderson

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,143
Latest member
DewittMill
Top