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 tim.peters
Recipients
Date 2001-11-09.22:33:49
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Adapted from a c.l.py report:

class C:
.   def __str__(self):
.       print "a"
.       return "b"
print C()

The output is " a\nb\n" -- note the surprising leading 
space.  This is because PRINT_ITEM forces softspace to 
1 *before* converting the output item (so softspace is 
1 when we get into __str__, despite that nothing yet 
has been written).
History
Date User Action Args
2007-08-23 13:57:21adminlinkissue480215 messages
2007-08-23 13:57:21admincreate