[New-bugs-announce] [issue16608] subclass str fails
David W. Lambert
report at bugs.python.org
Tue Dec 4 19:54:03 CET 2012
New submission from David W. Lambert:
http://forums.devshed.com/newreply.php?do=newreply&noquote=1&p=2838814
>>> class c(tuple):
... def __init__(s,a,b):
... tuple.__init__(s,a)
... self.b = b
...
>>> c(tuple(),666)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: tuple() takes at most 1 argument (2 given)
>>>
----------
components: Interpreter Core
messages: 176928
nosy: LambertDW
priority: normal
severity: normal
status: open
title: subclass str fails
type: behavior
versions: Python 2.7, Python 3.2
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16608>
_______________________________________
More information about the New-bugs-announce
mailing list