[issue8029] bug in 2to3 dealing with "print FOO, " followed by "sys.stdout.write('')"

2021-10-20 Thread Irit Katriel


Change by Irit Katriel :


--
resolution:  -> wont fix
stage:  -> resolved
status: open -> closed
superseder:  -> Close 2to3 issues and list them here

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8029] bug in 2to3 dealing with "print FOO, " followed by "sys.stdout.write('')"

2019-03-15 Thread Mark Lawrence


Change by Mark Lawrence :


--
nosy:  -BreamoreBoy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8029] bug in 2to3 dealing with "print FOO, " followed by "sys.stdout.write('')"

2014-06-15 Thread Mark Lawrence

Mark Lawrence added the comment:

@Benjamin could you review the patch please.

--
nosy: +BreamoreBoy
type:  -> behavior
versions: +Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8029] bug in 2to3 dealing with "print FOO, " followed by "sys.stdout.write('')"

2010-04-07 Thread Matt Bond

Matt Bond  added the comment:

I've attached a patch that fixes this particular idiom as well as a problem 
with the handling of bare 'print' statements. It also includes updated tests 
for these issues.

--
keywords: +patch
nosy: +zxaos
Added file: http://bugs.python.org/file16812/fix8029.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8029] bug in 2to3 dealing with "print FOO, " followed by "sys.stdout.write('')"

2010-02-28 Thread R. David Murray

Changes by R. David Murray :


--
nosy: +benjamin.peterson

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8029] bug in 2to3 dealing with "print FOO, " followed by "sys.stdout.write('')"

2010-02-27 Thread Trent Mick

New submission from Trent Mick :

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/

--
components: 2to3 (2.x to 3.0 conversion tool)
messages: 100194
nosy: trentm
severity: normal
status: open
title: bug in 2to3 dealing with "print FOO," followed by "sys.stdout.write('')"

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com