[issue44089] csv.Error can't be subclassed

Oleg Hoefling report at bugs.python.org
Sun May 9 08:15:42 EDT 2021


New submission from Oleg Hoefling <oleg.hoefling at gmail.com>:

Due to changes introduced in https://bugs.python.org/issue14935 the `csv.Error` can't be subclassed in 3.10. To reproduce:

Python 3.9.4 (default, Apr  6 2021, 00:00:00)
>>> import csv
>>> class C(csv.Error):
...     pass


Python 3.10.0b1 (default, May  4 2021, 00:00:00)
>>> import csv
>>> class C(csv.Error):
...     pass
... 
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: type '_csv.Error' is not an acceptable base type

----------
components: Extension Modules
messages: 393320
nosy: hoefling
priority: normal
severity: normal
status: open
title: csv.Error can't be subclassed
versions: Python 3.10, Python 3.11

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44089>
_______________________________________


More information about the Python-bugs-list mailing list