Is there a built-in method for transforming (1, None, "Hello!") to 1, None, "Hello!"?

Simon Brunning simon.brunning at gmail.com
Fri Nov 11 10:35:13 EST 2005


On 11 Nov 2005 07:21:46 -0800, Daniel Crespo <dcrespo at gmail.com> wrote:
> Is there a built-in method for transforming (1,None,"Hello!") to
> 1,None,"Hello!"?

There's no conversion to do:

>>> (1,None,"Hello!")
(1, None, 'Hello!')
>>> 1,None,"Hello!"
(1, None, 'Hello!')

They are both tuples contining identicle elements. What is it that you
want to do?

--
Cheers,
Simon B,
simon at brunningonline.net,
http://www.brunningonline.net/simon/blog/



More information about the Python-list mailing list