Message245578
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__()) |
|
Date |
User |
Action |
Args |
2015-06-21 00:15:43 | martin.panter | set | recipients:
+ 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:42 | martin.panter | set | messageid: <1434845742.7.0.0197668922113.issue15753@psf.upfronthosting.co.za> |
2015-06-21 00:15:42 | martin.panter | link | issue15753 messages |
2015-06-21 00:15:42 | martin.panter | create | |
|