[Patches] [ python-Patches-432183 ] PEP-259: skip printing newline*2

noreply@sourceforge.net noreply@sourceforge.net
Sun, 10 Jun 2001 02:12:49 -0700


Patches item #432183, was updated on 2001-06-11 13:00
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=432183&group_id=5470

Category: core (C code)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Guido van Rossum (gvanrossum)
Assigned to: Nobody/Anonymous (nobody)
Summary: PEP-259: skip printing newline*2

Initial Comment:
See PEP 259 (to be checked in soon).

This suppresses the printing of an extra newline when
the last item printed is a string ending in a newline.


----------------------------------------------------------------------

Comment By: Michael Hudson (mwh)
Date: 2001-06-10 02:12

Message:
Logged In: YES 
user_id=6656

I think you also want:

Index: code.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/code.py,v
retrieving revision 1.16
diff -c -1 -r1.16 code.py
*** code.py     2001/05/03 04:58:49     1.16
--- code.py     2001/06/11 22:11:29
***************
*** 106,108 ****
          else:
!             if softspace(sys.stdout, 0):
                  print
--- 106,108 ----
          else:
!             if softspace(sys.stdout, 0) >= 0:
                  print

(not tested)


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=432183&group_id=5470