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 martin.panter
Recipients Arfrever, BreamoreBoy, Cristóbal Ganter, amaury.forgeotdarc, asvetlov, benjamin.peterson, eric.araujo, ezio.melotti, james.sanders, josh.r, martin.panter, r.david.murray
Date 2015年06月21日.00:15:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1434845742.7.0.0197668922113.issue15753@psf.upfronthosting.co.za>
In-reply-to
Content
The obvious workaround is to include an explicit "self" parameter (name shouldn’t matter):
def f(arbitrary, *positional, **most_keywords):
 all_positional = (arbitrary,) + positional
 ...
If you need to reserve all keyword parameter names, you could try the manual version of super():
class A:
 def f(*all_positional, **all_keywords):
 print(super(A, all_positional[0]).__repr__())
History
Date User Action Args
2015年06月21日 00:15:43martin.pantersetrecipients: + martin.panter, amaury.forgeotdarc, benjamin.peterson, ezio.melotti, eric.araujo, Arfrever, r.david.murray, asvetlov, BreamoreBoy, james.sanders, josh.r, Cristóbal Ganter
2015年06月21日 00:15:42martin.pantersetmessageid: <1434845742.7.0.0197668922113.issue15753@psf.upfronthosting.co.za>
2015年06月21日 00:15:42martin.panterlinkissue15753 messages
2015年06月21日 00:15:42martin.pantercreate

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