Re: How can i use a variable without define it ?

2008-07-16 Thread zhw
On 7月16日, 下午5时35分, Ben Finney <[EMAIL PROTECTED]> wrote: > zhw <[EMAIL PROTECTED]> writes: > > Here is a example that I want to complete: > > >>> import sys, new > > >>> context={"name":"david", "sex":"ma

Re: How can i use a variable without define it ?

2008-07-16 Thread zhw
On 7月16日, 下午4时47分, Ben Finney <[EMAIL PROTECTED]> wrote: > zhw <[EMAIL PROTECTED]> writes: > > How can i use a variable without define it ? > > What do you mean by "use"? That's so vague I can think of many > possible interpretations. > > What do

How can i use a variable without define it ?

2008-07-16 Thread zhw
How can i use a variable without define it ? I have thought about the __import__ function, but the docs says "the __import__() function does not set the local variable named eggs"。 -- http://mail.python.org/mailman/listinfo/python-list