New submission from Oleg Hoefling <oleg.hoefl...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue44089>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to