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 mjpieters
Recipients mjpieters
Date 2015-03-04.14:59:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1425481188.05.0.778183770327.issue23583@psf.upfronthosting.co.za>
In-reply-to
Content
This is a regression or recurrence of issue #19481. 

To reproduce, create a subclass of unicode and try and print an instance of that class:

class Foo(unicode): pass

print Foo()

results in a traceback:

Traceback (most recent call last):
  File "<pyshell#4>", line 1, in <module>
    print Foo()
  File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/PyShell.py", line 1353, in write
    s = unicode.__getslice__(s, None, None)
TypeError: an integer is required

because unicode.__getslice__ does not accept None for the start and end indices.
History
Date User Action Args
2015-03-04 14:59:48mjpieterssetrecipients: + mjpieters
2015-03-04 14:59:48mjpieterssetmessageid: <1425481188.05.0.778183770327.issue23583@psf.upfronthosting.co.za>
2015-03-04 14:59:48mjpieterslinkissue23583 messages
2015-03-04 14:59:47mjpieterscreate