[issue15753] No-argument super in method with variable arguments raises SystemError

Mark Lawrence report at bugs.python.org
Tue Feb 24 15:25:05 CET 2015


Mark Lawrence added the comment:

RuntimeError is now given instead of SystemError.

Python 3.4.2 (v3.4.2:ab2c023a9432, Oct  6 2014, 22:16:31) [MSC v.1600 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> class A:
...     def f(*args):
...         print(super().__repr__())
...
>>> A().f()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 3, in f
RuntimeError: super(): no arguments

so presumably this can be closed as "out of date"?

----------
nosy: +BreamoreBoy

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15753>
_______________________________________


More information about the Python-bugs-list mailing list