Antoon Pardon <[EMAIL PROTECTED]> wrote:

> For instance if I do the following
>        a = 1,
> I have assigned a one element tuple to a.
> But if I do
>        print 1,
> It doesn't print a one element tuple.

And if you do

        parrot(1,)

you won't call parrot() with a one-element tuple either.  However,
'parrot(1)' and 'parrot(1,)' means exactly the same thing, while
'print 1' and 'print 1,' does not.


-- 
Thomas Bellman,   Lysator Computer Club,   Linköping University,  Sweden
"Adde parvum parvo magnus acervus erit"       ! bellman @ lysator.liu.se
          (From The Mythical Man-Month)       ! Make Love -- Nicht Wahr!

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to