Re: Why does __builtins__ mean different things...

2007-12-30 Thread Dustan
On Dec 22, 1:59 pm, James Stroud <[EMAIL PROTECTED]> wrote: > Dustan wrote: > > On Dec 21, 8:11 pm, James Stroud <[EMAIL PROTECTED]> wrote: > >> I swear there is another thread going on here of which I am not aware. > > > You just keep on telling yourself that. > > Is there a cricket here? No, but

Re: Why does __builtins__ mean different things...

2007-12-22 Thread James Stroud
Dustan wrote: > On Dec 21, 8:11 pm, James Stroud <[EMAIL PROTECTED]> wrote: >> I swear there is another thread going on here of which I am not aware. > > You just keep on telling yourself that. Is there a cricket here? -- James Stroud UCLA-DOE Institute for Genomics and Proteomics Box 951570 Lo

Re: Why does __builtins__ mean different things...

2007-12-22 Thread Dustan
On Dec 21, 8:11 pm, James Stroud <[EMAIL PROTECTED]> wrote: > I swear there is another thread going on here of which I am not aware. You just keep on telling yourself that. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why does __builtins__ mean different things...

2007-12-21 Thread James Stroud
Fredrik Lundh wrote: > James Stroud wrote: >> Erik Max Francis wrote: >>> randomly dropping letters in >>> names is going to result in bad behavior, so be more careful about it. Implying I've randomly dropped a letter? Where did I randomly drop a letter? > From what I can tell, the message Eri

Re: Why does __builtins__ mean different things...

2007-12-21 Thread Fredrik Lundh
James Stroud wrote: >>> Butwhat the heck? You mean if I drop an s I get predictable >>> behavior and if I don't, I get unpredictable behavior? >> >> You don't get unpredictable behavior, you just get different behavior >> you didn't expect, which is not the same thing. Python is a programm

Re: Why does __builtins__ mean different things...

2007-12-21 Thread James Stroud
Erik Max Francis wrote: > James Stroud wrote: > >> Thank you for your help. I will import the __builtin__ module as you >> have suggested--it is what I need. >> >> Butwhat the heck? You mean if I drop an s I get predictable >> behavior and if I don't, I get unpredictable behavior? > > You d

Re: Why does __builtins__ mean different things...

2007-12-21 Thread Erik Max Francis
James Stroud wrote: > Thank you for your help. I will import the __builtin__ module as you > have suggested--it is what I need. > > Butwhat the heck? You mean if I drop an s I get predictable behavior > and if I don't, I get unpredictable behavior? You don't get unpredictable behavior, you

Re: Why does __builtins__ mean different things...

2007-12-20 Thread Terry Reedy
"James Stroud" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Butwhat the heck? You mean if I drop an s I get predictable behavior | and if I don't, I get unpredictable behavior? In 3.0, the __builtin__ module will be renamed 'builtins'. The internal __builtins__ variable mo

Re: Why does __builtins__ mean different things...

2007-12-20 Thread James Stroud
Jean-Paul Calderone wrote: > On Thu, 20 Dec 2007 14:29:35 -0800, James Stroud <[EMAIL PROTECTED]> > wrote: >> Hello all, >> >> Say I have the following module >> >> # amodule.py >> print __builtins__ >> # end of module >> >> Then I have the following little helper script: >> >> # helper.py >> impo

Re: Why does __builtins__ mean different things...

2007-12-20 Thread Jean-Paul Calderone
On Thu, 20 Dec 2007 14:29:35 -0800, James Stroud <[EMAIL PROTECTED]> wrote: >Hello all, > >Say I have the following module > ># amodule.py >print __builtins__ ># end of module > >Then I have the following little helper script: > ># helper.py >import amodule ># end of helper script > >Now, I do this

Why does __builtins__ mean different things...

2007-12-20 Thread James Stroud
Hello all, Say I have the following module # amodule.py print __builtins__ # end of module Then I have the following little helper script: # helper.py import amodule # end of helper script Now, I do this at the command line: python amodule.py And I get the following output: Which is good.