# Bug report ### Bug description: `csv.writer` does a lot of manual buffer manipulations: - https://github.com/python/cpython/blob/f58a7c717584241467970623384ce61cbd776f29/Modules/_csv.c#L1115 - https://github.com/python/cpython/blob/f58a7c717584241467970623384ce61cbd776f29/Modules/_csv.c#L1127 - https://github.com/python/cpython/blob/f58a7c717584241467970623384ce61cbd776f29/Modules/_csv.c#L1221 - https://github.com/python/cpython/blob/f58a7c717584241467970623384ce61cbd776f29/Modules/_csv.c#L1240 - https://github.com/python/cpython/blob/f58a7c717584241467970623384ce61cbd776f29/Modules/_csv.c#L1283 I believe that big parts of this is no longer needed, since 3.14 and introduction of `PyUnicodeWriter`: - https://docs.python.org/dev/c-api/unicode.html#c.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 <!-- gh-linked-prs --> ### Linked PRs * gh-138271 <!-- /gh-linked-prs -->
Activity
maurycy commentedon Mar 23, 2026
Is this an issue or a prescription of the implementation?