convert integer to string

Andres Soto soto_andres at yahoo.com
Sun Apr 29 13:18:42 EDT 2012


I have already
>>> import string

>>> from string import *

but I can not still convert an integer to string
>>> str(42)
Traceback (most recent call last):
  File "<pyshell#20>", line 1, in <module>
    str(42)
TypeError: 'module' object is not callable
>>> 
What is it wrong?
Thank you
 
Prof. Dr. Andrés Soto
DES DACI
UNACAR
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120429/8f72d1f3/attachment-0001.html>


More information about the Python-list mailing list