weird str error

daved170 daved170 at gmail.com
Tue Sep 15 10:41:09 EDT 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
error:

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

file "c:\Python25\lib\local.py" 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