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

allow __text_signature__ to work for c heap types #85855

Closed
benjaminp opened this issue Sep 2, 2020 · 2 comments
Closed

allow __text_signature__ to work for c heap types #85855

benjaminp opened this issue Sep 2, 2020 · 2 comments
Labels
3.9 only security fixes 3.10 only security fixes topic-C-API

Comments

@benjaminp
Copy link
Contributor

BPO 41689
Nosy @benjaminp
PRs
  • closes bpo-41689: Preserve text signature from tp_doc in C heap type creation. #22058
  • 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 2020-09-02.16:29:14.564>
    created_at = <Date 2020-09-02.04:37:01.194>
    labels = ['expert-C-API', '3.9', '3.10']
    title = 'allow __text_signature__ to work for c heap types'
    updated_at = <Date 2020-09-02.16:29:14.564>
    user = 'https://github.com/benjaminp'

    bugs.python.org fields:

    activity = <Date 2020-09-02.16:29:14.564>
    actor = 'benjamin.peterson'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-09-02.16:29:14.564>
    closer = 'benjamin.peterson'
    components = ['C API']
    creation = <Date 2020-09-02.04:37:01.194>
    creator = 'benjamin.peterson'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 41689
    keywords = ['patch']
    message_count = 2.0
    messages = ['376216', '376251']
    nosy_count = 1.0
    nosy_names = ['benjamin.peterson']
    pr_nums = ['22058']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue41689'
    versions = ['Python 3.9', 'Python 3.10']

    @benjaminp
    Copy link
    Contributor Author

    C types can add a signature to their __doc__. Currently, PyType_FromSpec just deletes such signatures instead of making them visible from __text_signature__.

    @benjaminp benjaminp added 3.9 only security fixes 3.10 only security fixes topic-C-API labels Sep 2, 2020
    @benjaminp
    Copy link
    Contributor Author

    New changeset 3940333 by Benjamin Peterson in branch 'master':
    closes bpo-41689: Preserve text signature from tp_doc in C heap type creation. (GH-22058)
    3940333

    @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.9 only security fixes 3.10 only security fixes topic-C-API
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant