Problems including maths library from within Spyce

Marcus Hoechstetter <[email protected]> Thu, 14 Sep 2006 13:36:13 +0200 (CEST)
Newsgroups gmane.comp.python.spyce.general
Message-ID <[email protected]>
[[\
from math import pi

def printPi():
  print pi
  
printPi()
]]

this works perfectly

[[\
from math import *

def printPi():
  print pi
  
printPi()
]]

whereas this causes the following error:


 Python syntax error at index.spy:8 - import * is not allowed in function 'spyceProcess' because it contains a nested function with free variables
  from math import *

Anyone got an idea?

Thanx in advance

Marcus





 		
---------------------------------
Yahoo! Messenger -  kostenlos* mit Familie und Freunden von PC zu PC telefonieren.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Spyce-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spyce-users