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.

classification
Title: SystemError raised by super() in erronous class should be NameError or RuntimeError
Type: behavior Stage: resolved
Components: None Versions: Python 3.2, Python 3.3, Python 3.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: Ramchandra Apte, python-dev
Priority: normal Keywords:

Created on 2012-09-01 14:09 by Ramchandra Apte, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg169634 - (view) Author: Ramchandra Apte (Ramchandra Apte) * Date: 2012-09-01 14:09
Running the erronous code:

class X:
    super_object = super()

fails with a SystemError("super(): __class__ cell not found")
The exception should be a NameError or SystemError.
msg169685 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-09-02 03:04
New changeset e2e4a0a49d2e by Benjamin Peterson in branch 'default':
Make super() internal errors RuntimeError instead of SystemError (closes #15839)
http://hg.python.org/cpython/rev/e2e4a0a49d2e
History
Date User Action Args
2022-04-11 14:57:35adminsetgithub: 60043
2012-09-02 03:04:46python-devsetstatus: open -> closed

nosy: + python-dev
messages: + msg169685

resolution: fixed
stage: resolved
2012-09-02 02:52:53benjamin.petersonsetversions: + Python 3.4, - Python 2.7
2012-09-01 14:09:18Ramchandra Aptesettitle: SystemError raised by super() should be NameError or RuntimeError -> SystemError raised by super() in erronous class should be NameError or RuntimeError
2012-09-01 14:09:00Ramchandra Aptecreate