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

Grant Edwards grante at visi.com
Fri Nov 11 10:27:04 EST 2005


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

What transformation? The two are identical:

>>> x = (1,None,"Hello!")
>>> y = 1,None,"Hello!"
>>> x == y
True

-- 
Grant Edwards                   grante             Yow!  Nice decor!
                                  at               
                               visi.com            



More information about the Python-list mailing list