Title: csv.writer ignores a dialect's quoting and lineterminator · Issue #8253 · RustPython/RustPython · GitHub
Open Graph Title: csv.writer ignores a dialect's quoting and lineterminator · Issue #8253 · RustPython/RustPython
X Title: csv.writer ignores a dialect's quoting and lineterminator · Issue #8253 · RustPython/RustPython
Description: Feature csv.writer ignores the quoting and lineterminator of a dialect (passed by name or as an object) — only explicit keyword arguments take effect. So writing with a built-in dialect differs from CPython. import csv, io sio = io.Strin...
Open Graph Description: Feature csv.writer ignores the quoting and lineterminator of a dialect (passed by name or as an object) — only explicit keyword arguments take effect. So writing with a built-in dialect differs fro...
X Description: Feature csv.writer ignores the quoting and lineterminator of a dialect (passed by name or as an object) — only explicit keyword arguments take effect. So writing with a built-in dialect differs fro...
Opengraph URL: https://github.com/RustPython/RustPython/issues/8253
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"csv.writer ignores a dialect's quoting and lineterminator","articleBody":"## Feature\n\n`csv.writer` ignores the `quoting` and `lineterminator` of a dialect (passed by\nname or as an object) — only explicit keyword arguments take effect. So writing\nwith a built-in dialect differs from CPython.\n\n```python\nimport csv, io\nsio = io.StringIO()\ncsv.writer(sio, dialect='unix').writerow([1, 'abc def', 'abc'])\nprint(repr(sio.getvalue()))\n# CPython: '\"1\",\"abc def\",\"abc\"\\n'\n# RustPython: '1,abc def,abc\\r\\n'\n```\n\n## Python Documentation or reference to CPython source code\n\nhttps://docs.python.org/3/library/csv.html#csv.Dialect\n(`unix_dialect` = `QUOTE_ALL` + `lineterminator='\\n'`)\n\n\u003csub\u003eDrafted with AI assistance (Claude Code), reviewed by me.\u003c/sub\u003e\n","author":{"url":"https://github.com/jinmay","@type":"Person","name":"jinmay"},"datePublished":"2026-07-11T07:08:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/8253/RustPython/issues/8253"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:263c3387-caa6-2bd2-1eee-b5814d96c58b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AEBE:8CE1A:F0DFB:149098:6A60206A |
| html-safe-nonce | 41bbca6e2899a083f782f74ea281d88b164deb850f2df839a04f959c98f103cc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRUJFOjhDRTFBOkYwREZCOjE0OTA5ODo2QTYwMjA2QSIsInZpc2l0b3JfaWQiOiI0MDk0MDE0MTk2MTQwNzQ0ODEwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 153d3c89ef11cd332c5cb5429c98753378dd15fa2c86c94fefa7afe8e9ed6e32 |
| hovercard-subject-tag | issue:4861098821 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/RustPython/RustPython/8253/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fe1beba1729e76567741995610472044cd709b3faca9a7284449fbf16b666f0f/RustPython/RustPython/issues/8253 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fe1beba1729e76567741995610472044cd709b3faca9a7284449fbf16b666f0f/RustPython/RustPython/issues/8253 |
| og:image:alt | Feature csv.writer ignores the quoting and lineterminator of a dialect (passed by name or as an object) — only explicit keyword arguments take effect. So writing with a built-in dialect differs fro... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jinmay |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7e86a727ba4abf81d0638c5ead57286c17d3b2706f57813445c4316d8e848673 |
| turbo-cache-control | no-preview |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f13d8ac548fb76838b3d703c7fe2100887547d0e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width