pre-PEP: Print Without Intervening Space
Thomas Bellman
bellman at lysator.liu.se
Tue Mar 15 06:50:47 EST 2005
Antoon Pardon <apardon at forel.vub.ac.be> 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!
More information about the Python-list
mailing list