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: Non global alternative to csv.field_size_limit #80302
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2019-02-26.11:44:07.897>labels= ['3.8', 'type-feature', 'library']
title='csv: Non global alternative to csv.field_size_limit'updated_at=<Date2019-02-27.16:10:41.313>user='https://bugs.python.org/CarlosRamos'
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.
Activity
CarlosRamos commentedon Feb 26, 2019
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.
remilapeyre commentedon Feb 26, 2019
Hi Carlos, I think this can be added as a new
field_size_limitkeyword argument to csv.reader().I will work on it.