Skip to content

csv: Non global alternative to csv.field_size_limit #80302

Open

Description

@CarlosRamos
BPO 36121
Nosy @remilapeyre
PRs
  • gh-80302: Override field_size_limit per csv.reader object #12071
  • 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 = None
    closed_at = None
    created_at = <Date 2019-02-26.11:44:07.897>
    labels = ['3.8', 'type-feature', 'library']
    title = 'csv: Non global alternative to csv.field_size_limit'
    updated_at = <Date 2019-02-27.16:10:41.313>
    user = 'https://bugs.python.org/CarlosRamos'

    bugs.python.org fields:

    activity = <Date 2019-02-27.16:10:41.313>
    actor = 'remi.lapeyre'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2019-02-26.11:44:07.897>
    creator = 'Carlos Ramos'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 36121
    keywords = ['patch']
    message_count = 2.0
    messages = ['336651', '336657']
    nosy_count = 2.0
    nosy_names = ['remi.lapeyre', 'Carlos Ramos']
    pr_nums = ['12071']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue36121'
    versions = ['Python 3.8']

    Activity

    1. CarlosRamos commented on Feb 26, 2019

      CarlosRamosmannequin
      MannequinAuthor

      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.

    2. remilapeyre commented on Feb 26, 2019

      remilapeyremannequin
      Mannequin

      Hi Carlos, I think this can be added as a new field_size_limit keyword argument to csv.reader().

      I will work on it.

    3. added
      stdlibStandard Library Python modules in the Lib/ directory
      and removed on Feb 27, 2019
    4. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.8 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

      Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions