Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
Closed
Description
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.Reader and_csv.Writer turn out to be not properly initialized, and operations on them easily lead to crash:
>>>import_csv>>>_csv.Writer().writerow([])Segmentationfault (coredumped)
>>>import_csv>>>list(_csv.Reader())Segmentationfault (coredumped)
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.