weird str error

daved170 daved170 at
Tue Sep 15 16:41:09 CEST 2009

Hi everybody,
I'm using SPE 0.8.3.c as my python editor.
I'm using the str() function and i got a very odd error.

I'm trying to do this: print str("HI")
When i'm writing this line in the shell it prints: HI
When it's in my code (it's the only line) i'm getting the following

file "c:\Python25\lib\" line 242, in str
   return format("%.12g",val)

file "c:\Python25\lib\" line 145, in format
   formatted = percent % value
   TypeError, float argument required

any idea? It's worked for the entire day and unfortunately when i
started my testing it raised this erroe/

More information about the Python-list mailing list