Re: why this error?

2007-12-16 Thread python.jiang
thanks all first. but i had one class bellow to get object info what user had inputed when run application. because the problem that i had showed yestoday, i must write the code so hard to understand. can any friend tell me one way to solve this problem? thanks!! list: import inspect vtStd,v

why this error?

2007-12-16 Thread python.jiang
hello friends, the question had show bellow, any friend can tell me why. thanks. list: def test(): exec "import sys" a=range(15) b=[13,3] c=filter(lambda x: x not in b,a) return c print test() run result: File "a.py", line 2 exec "import sys" SyntaxError: unqualified exec is not