classification
Title: SystemError raised by super() in erronous class should be NameError or RuntimeError
Type: behavior Stage: resolved
Components: None Versions: Python 3.4, Python 3.2, Python 3.3
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 2012-09-02 03:04 by python-dev. 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) 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
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