Re: surprised by import in python 2.6

2011-01-08 Thread Aahz
In article tvxmo.3345$wj4.1...@newsfe12.ams2, Stefaan Himpe stefaan.hi...@gmail.com wrote: Recently someone asked me this question, to which I could not give an answer. I'm hoping for some insight, or a manual page. What follows is python 2.6. The problem is with the difference between from

surprised by import in python 2.6

2010-12-10 Thread Stefaan Himpe
Hello list, Recently someone asked me this question, to which I could not give an answer. I'm hoping for some insight, or a manual page. What follows is python 2.6. The problem is with the difference between from test import * and import test First things first. Here's the code to

Re: surprised by import in python 2.6

2010-12-10 Thread Ian
On Dec 10, 3:06 pm, Stefaan Himpe stefaan.hi...@gmail.com wrote: Somehow, in the first session I cannot modify the global variable a returned from f, but in the second session I can. To my eye, the only difference seems to be a namespace. Can anyone shine some light on this matter? It's not

Re: surprised by import in python 2.6

2010-12-10 Thread Emile van Sebille
On 12/10/2010 2:22 PM Ian said... On Dec 10, 3:06 pm, Stefaan Himpestefaan.hi...@gmail.com wrote: Somehow, in the first session I cannot modify the global variable a returned from f, but in the second session I can. To my eye, the only difference seems to be a namespace. Can anyone shine some