Message237181
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. |
|
Date |
User |
Action |
Args |
2015-03-04 14:59:48 | mjpieters | set | recipients:
+ mjpieters |
2015-03-04 14:59:48 | mjpieters | set | messageid: <1425481188.05.0.778183770327.issue23583@psf.upfronthosting.co.za> |
2015-03-04 14:59:48 | mjpieters | link | issue23583 messages |
2015-03-04 14:59:47 | mjpieters | create | |
|