Re: convert integer to string

2012-04-29 Thread Chris Rebert
On Sun, Apr 29, 2012 at 10:18 AM, Andres Soto wrote: > I have already import string from string import * > but I can not still convert an integer to string There is no need to import the `string` module to do that. Most of the `string` module is deprecated. `str` is the *built-in* type

Re: convert integer to string

2012-04-29 Thread MRAB
On 29/04/2012 18:18, Andres Soto wrote: 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 "", line 1, in str(42) TypeError: 'module' object is not callable >> What is it wrong? At so

convert integer to string

2012-04-29 Thread Andres Soto
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 "", line 1, in     str(42) TypeError: 'module' object is not callable >>>  What is it wrong? Thank you   Prof. Dr. Andrés Soto DES DACI