Rev 5312: Make setup.py python 3.1 compatible. in http://bazaar.launchpad.net/~lifeless/bzr/py3
John Arbash Meinel
john at arbash-meinel.com
Mon Jun 21 22:44:36 BST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Robert Collins wrote:
...
> - print
> + print()
> + print("The python package 'Pyrex' is not available."
> + " If the .c files are available,")
> + print("they will be built,"
> + " but modifying the .pyx files will not rebuild them.")
> + print()
I don't know if your goal is to be 2.6 *and* 3.x compatible, but I
thought I'd mention that you may want "print('')"
>>> print()
()
>>> print
>>> print('')
>>>
() is the empty tuple, so it gets printed as a tuple. ('') is
parenthesis around a string, so the string gets printed.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkwf3UMACgkQJdeBCYSNAAMZnACfd8Zjjte+t1sHQq2NewZgzqme
qn8An3n0Ai+4MWzQnqCa0UQKNTNv2Akc
=YXlr
-----END PGP SIGNATURE-----
More information about the bazaar-commits
mailing list