You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
csv.writer: multi-character lineterminator is truncated to a single byte #8322
csv.writer should accept an arbitrary string as lineterminator. RustPython stores it as a single byte, so a multi-character terminator is truncated instead of being emitted in full.
Because of this, test_write_lineterminator (Lib/test/test_csv.py) is marked @unittest.expectedFailure — it fails only on the '!@#' subcase.
Scope is limited to the multi-character lineterminator. Left as separate follow-ups: lineterminator validation parity, non-ASCII delimiter/quotechar/escapechar (see #8310), and reader semantics (CPython's reader ignores lineterminator and only recognizes CR/LF).
Python Documentation or reference to CPython source code
changed the title [-]csv: support multi-character lineterminator in writer[/-][+]csv.writer: multi-character lineterminator is truncated to a single byte[/+]on Jul 19, 2026
Activity
jinmay commentedon Jul 19, 2026
take
[-]csv: support multi-character lineterminator in writer[/-][+]csv.writer: multi-character lineterminator is truncated to a single byte[/+]