This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author trentm
Recipients trentm
Date 2010-02-27.23:08:39
SpamBayes Score 0.00041920043
Marked as misclassified No
Message-id <1267312123.13.0.138693680363.issue8029@psf.upfronthosting.co.za>
In-reply-to
Content
According to http://docs.python.org/reference/simple_stmts.html#the-print-statement the following with result in the print statement NOT printing a trailing space:

    import sys
    print u"ASD",; sys.stdout.write(u"")

However, 2to3 currently translates this to:

    import sys
    print("ASD", end=' '); sys.stdout.write("")

It *should* translate to:

    import sys
    print("ASD", end='')

You can also see the discussion of this on this lib3to2 bug report:
  http://bitbucket.org/amentajo/lib3to2/issue/13/print-3-end-isnt-translated-properly
and translation of this between 2to3 and 3to2 here:
  http://pythontranslationparty.appspot.com/6004/
History
Date User Action Args
2010-02-27 23:08:43trentmsetrecipients: + trentm
2010-02-27 23:08:43trentmsetmessageid: <1267312123.13.0.138693680363.issue8029@psf.upfronthosting.co.za>
2010-02-27 23:08:40trentmlinkissue8029 messages
2010-02-27 23:08:39trentmcreate