homepage

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 Albert.Zeyer
Recipients Albert.Zeyer
Date 2015年04月17日.14:40:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1429281627.58.0.914440284971.issue23988@psf.upfronthosting.co.za>
In-reply-to
Content
Code:
class C(object):
	def __init__(self, a, b=2, c=3):
		pass
class D(C):
	def __init__(self, d, **kwargs):
		super(D, self).__init__(**kwargs)
class E(D):
	def __init__(self, **kwargs):
		super(E, self).__init__(**kwargs)
E(d=42, b=0, c=0)
You get the funny message:
TypeError: __init__() takes at least 2 arguments (3 given)
History
Date User Action Args
2015年04月17日 14:40:27Albert.Zeyersetrecipients: + Albert.Zeyer
2015年04月17日 14:40:27Albert.Zeyersetmessageid: <1429281627.58.0.914440284971.issue23988@psf.upfronthosting.co.za>
2015年04月17日 14:40:27Albert.Zeyerlinkissue23988 messages
2015年04月17日 14:40:27Albert.Zeyercreate

AltStyle によって変換されたページ (->オリジナル) /