Message397446
The csv module has some incorrect exception handling when dealing with dialect objects that are not csv.Dialect subclasses (or that otherwise raise errors when accessing the dialect attributes):
>>> csv.reader([], dialect=None)
python: ../../cpython/Objects/typeobject.c:3820: _PyType_Lookup: Assertion `!PyErr_Occurred()' failed.
Aborted
The problem is Modules/_csv.c tries to cater to dialects that lack the attributes it wants to access, but does so by leaving exceptions set between calls to PyObject_SetAttrString(). Since 3.7, that causes assertion failures. (I have a PR with a fix.) |
|
Date |
User |
Action |
Args |
2021-07-13 21:49:14 | twouters | set | recipients:
+ twouters, gregory.p.smith |
2021-07-13 21:49:13 | twouters | set | messageid: <1626212953.96.0.40256914813.issue44630@roundup.psfhosted.org> |
2021-07-13 21:49:13 | twouters | link | issue44630 messages |
2021-07-13 21:49:13 | twouters | create | |
|