This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: csv: Non global alternative to csv.field_size_limit
Type: enhancement Stage: patch review
Components: Library (Lib) Versions: Python 3.8
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Carlos Ramos, remi.lapeyre
Priority: normal Keywords: patch

Created on 2019-02-26 11:44 by Carlos Ramos, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 12071 open remi.lapeyre, 2019-02-27 16:07
Messages (2)
msg336651 - (view) Author: Carlos Ramos (Carlos Ramos) Date: 2019-02-26 11:44
The function csv.field_size_limit gets and sets a global variable. It would be useful to change this limit in a per-reader or per-thread basis, so that a library can change it without affecting global state.
msg336657 - (view) Author: Rémi Lapeyre (remi.lapeyre) * Date: 2019-02-26 12:40
Hi Carlos, I think this can be added as a new `field_size_limit` keyword argument to csv.reader().

I will work on it.
History
Date User Action Args
2022-04-11 14:59:11adminsetgithub: 80302
2019-02-27 16:10:41remi.lapeyresetcomponents: + Library (Lib), - Extension Modules
2019-02-27 16:07:20remi.lapeyresetkeywords: + patch
stage: patch review
pull_requests: + pull_request12091
2019-02-26 12:40:06remi.lapeyresetnosy: + remi.lapeyre
messages: + msg336657
2019-02-26 11:44:07Carlos Ramoscreate