_csv Reader and Writer types shouldn't be directly instantiable
#104265
Labels
type-crash
A hard crash of the interpreter, possibly with a core dump
The accepted way to create these objects is to use constructor functions
_csv.reader()and_csv.writer()with appropriate arguments. Objects that are created through type constructors_csv.Readerand_csv.Writerturn out to be not properly initialized, and operations on them easily lead to crash:Although this is an internal detail, I'm sure that this should be fixed. I'll submit a PR shortly.
The crash appears on 3.10, 3.11 and current main.
Linked PRs
_csv.Readerand_csv.Writer#104266_csv.Readerand_csv.Writer(GH-104266) #104278The text was updated successfully, but these errors were encountered: