Skip to content

csv: Non global alternative to csv.field_size_limit #80302

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
CarlosRamos mannequin opened this issue Feb 26, 2019 · 2 comments
Open

csv: Non global alternative to csv.field_size_limit #80302

CarlosRamos mannequin opened this issue Feb 26, 2019 · 2 comments
Labels
3.8 (EOL) end of life stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@CarlosRamos
Copy link
Mannequin

CarlosRamos mannequin commented Feb 26, 2019

BPO 36121
Nosy @remilapeyre
PRs
  • bpo-36121: 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']

    @CarlosRamos
    Copy link
    Mannequin Author

    CarlosRamos mannequin commented 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.

    @CarlosRamos CarlosRamos mannequin added extension-modules C modules in the Modules dir 3.8 (EOL) end of life type-feature A feature request or enhancement labels Feb 26, 2019
    @remilapeyre
    Copy link
    Mannequin

    remilapeyre mannequin commented Feb 26, 2019

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

    I will work on it.

    @remilapeyre remilapeyre mannequin added stdlib Python modules in the Lib dir and removed extension-modules C modules in the Modules dir labels Feb 27, 2019
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.8 (EOL) end of life stdlib Python modules in the Lib dir type-feature A feature request or enhancement
    Projects
    Status: No status
    Development

    No branches or pull requests

    0 participants