Bug report
Bug description:
csv.writer does a lot of manual buffer manipulations:
|
join_reset(WriterObj *self) |
|
join_append_data(WriterObj *self, int field_kind, const void *field_data, |
|
join_check_rec_size(WriterObj *self, Py_ssize_t rec_len) |
|
join_append(WriterObj *self, PyObject *field, int quoted) |
|
join_append_lineterminator(WriterObj *self) |
I believe that big parts of this is no longer needed, since 3.14 and introduction of PyUnicodeWriter:
gh-125196 seems to be a catch-all for using the new API but I believe it's missing the csv module.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
Bug report
Bug description:
csv.writerdoes a lot of manual buffer manipulations:cpython/Modules/_csv.c
Line 1115 in f58a7c7
cpython/Modules/_csv.c
Line 1127 in f58a7c7
cpython/Modules/_csv.c
Line 1221 in f58a7c7
cpython/Modules/_csv.c
Line 1240 in f58a7c7
cpython/Modules/_csv.c
Line 1283 in f58a7c7
I believe that big parts of this is no longer needed, since 3.14 and introduction of
PyUnicodeWriter:gh-125196 seems to be a catch-all for using the new API but I believe it's missing the
csvmodule.CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
PyUnicodeWriterincsv.writer#138271