Re: Import module inside class chunk
"Jonathan Ellis" <[email protected]> Mon, 23 Oct 2006 09:27:51 -0700
| Newsgroups | gmane.comp.python.spyce.general |
|---|---|
| Message-ID | <[email protected]> |
just fix your indentation [[! import datetime, time def something(self): print "whatever" ]] On Mon, 23 Oct 2006 10:32:16 -0400, "Garland, Ken R" <[email protected]> said: > how can this be done? > > I need the following to work: > > [[! > import datetime, time > def something(self): > print "whatever" > ]] > > of course the real code is a bit more complex, but the import is > needed. it works perfectly fine in my straight python code, but i need > it to be in a spyce class chunk. > > ------------------------------------------------------------------------- > 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 -- C++ is history repeated as tragedy. Java is history repeated as farce. --Scott McKay ------------------------------------------------------------------------- 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