Martin Panter added the comment:
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__())
----------
nosy: +vadmium
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue15753>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com