[New-bugs-announce] [issue37108] Positional-only arguments break super()
Serhiy Storchaka
report at bugs.python.org
Fri May 31 04:27:50 EDT 2019
New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:
See the example pep570super.py. super() without arguments does not work for positional-only arguments.
Traceback (most recent call last):
File "pep570super.py", line 13, in <module>
print(C())
File "pep570super.py", line 10, in __new__
return super().__new__(cls)
RuntimeError: super(): no arguments
----------
components: Interpreter Core
files: pep570super.py
messages: 344034
nosy: ncoghlan, pablogsal, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Positional-only arguments break super()
type: behavior
versions: Python 3.8
Added file: https://bugs.python.org/file48379/pep570super.py
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37108>
_______________________________________
More information about the New-bugs-announce
mailing list