python vs ecmascript

Peoter Veliki peoter_veliki at
Fri Nov 16 23:03:27 CET 2001

> > also a bit annoyed at some things like having to wrap objects in a str()
> > before
> > printing, I don't see why this can't be automatic.
> Since when?  The print statement automatically invokes str() on its
> From the documentation:

I'm using Python 2.0 at the moment (it is necessary as it is integrated
into another product), perhaps this limitation was removed in later
versions.  If I try to do this:

print "integer i = " + i

it will barf on this and tell me that i is not a string, I must do this:

print "integer i = " + str(i)

More information about the Python-list mailing list