➜

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.

作者 trentm
收信人 trentm
日期 2010-02-27.23:08:39
SpamBayes Score 0.00041920043
Marked as misclassified 否
Message-id <1267312123.13.0.138693680363.issue8029@psf.upfronthosting.co.za>
In-reply-to
内容
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/
历史
日期 用户 动作 参数
2010-02-27 23:08:43trentm修改recipients: + trentm
2010-02-27 23:08:43trentm修改messageid: <1267312123.13.0.138693680363.issue8029@psf.upfronthosting.co.za>
2010-02-27 23:08:40trentm链接issue8029 messages
2010-02-27 23:08:39trentm创建