Skip to content
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

Refactor docstring handling code in the compiler #77872

Closed
serhiy-storchaka opened this issue May 30, 2018 · 2 comments
Closed

Refactor docstring handling code in the compiler #77872

serhiy-storchaka opened this issue May 30, 2018 · 2 comments
Labels
3.8 only security fixes interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement

Comments

@serhiy-storchaka
Copy link
Member

BPO 33691
Nosy @brettcannon, @ncoghlan, @benjaminp, @methane, @serhiy-storchaka, @1st1
PRs
  • bpo-33691: Add _PyAST_GetDocString(). #7236
  • 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 = <Date 2018-05-30.07:57:00.961>
    created_at = <Date 2018-05-30.05:34:34.593>
    labels = ['interpreter-core', 'type-feature', '3.8']
    title = 'Refactor docstring handling code in the compiler'
    updated_at = <Date 2018-05-30.07:57:00.961>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2018-05-30.07:57:00.961>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-05-30.07:57:00.961>
    closer = 'serhiy.storchaka'
    components = ['Interpreter Core']
    creation = <Date 2018-05-30.05:34:34.593>
    creator = 'serhiy.storchaka'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 33691
    keywords = ['patch']
    message_count = 2.0
    messages = ['318155', '318159']
    nosy_count = 6.0
    nosy_names = ['brett.cannon', 'ncoghlan', 'benjamin.peterson', 'methane', 'serhiy.storchaka', 'yselivanov']
    pr_nums = ['7236']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue33691'
    versions = ['Python 3.8']

    @serhiy-storchaka
    Copy link
    Member Author

    Similar non-trivial code is used in several places in the compiler for handling docstrings. The proposed PR adds a helper _PyAST_GetDocString() for reusing a code.

    @serhiy-storchaka serhiy-storchaka added 3.8 only security fixes interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement labels May 30, 2018
    @serhiy-storchaka
    Copy link
    Member Author

    New changeset 143ce5c by Serhiy Storchaka in branch 'master':
    bpo-33691: Add _PyAST_GetDocString(). (GH-7236)
    143ce5c

    @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 only security fixes interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant