Re: eval( 'import math' )

2016-02-04 Thread Peter Otten
阎兆珣 wrote: >Excuse me for the same problem in Python 3.4.2-32bit > >I just discovered that function does not necessarily take the >string input and transfer it to a command to execute. > >So is there a problem with my assumption? Python discriminates between statements and expr

Re: eval( 'import math' )

2016-02-04 Thread Ian Kelly
On Thu, Feb 4, 2016 at 6:33 AM, 阎兆珣 wrote: >Excuse me for the same problem in Python 3.4.2-32bit > >I just discovered that function does not necessarily take the >string input and transfer it to a command to execute. > >So is there a problem with my assumption? eval evaluates an

RE: eval( 'import math' )

2016-02-04 Thread Lutz Horn
Hi, >I just discovered that function does not necessarily take the >string input and transfer it to a command to execute. Can you please show us the code you try to execute and tells what result you expect? Lutz -- https://mail.python.org/ma