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

Add SupportsIndex #81153

Closed
pcd1193182 mannequin opened this issue May 20, 2019 · 2 comments
Closed

Add SupportsIndex #81153

pcd1193182 mannequin opened this issue May 20, 2019 · 2 comments
Labels
3.8 only security fixes stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@pcd1193182
Copy link
Mannequin

pcd1193182 mannequin commented May 20, 2019

BPO 36972
Nosy @ilevkivskyi, @pcd1193182
PRs
  • bpo-36972: Add SupportsIndex #13448
  • 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 2019-05-22.14:24:49.785>
    created_at = <Date 2019-05-20.16:09:29.855>
    labels = ['3.8', 'type-feature', 'library']
    title = 'Add SupportsIndex'
    updated_at = <Date 2019-05-22.14:24:49.785>
    user = 'https://github.com/pcd1193182'

    bugs.python.org fields:

    activity = <Date 2019-05-22.14:24:49.785>
    actor = 'levkivskyi'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-05-22.14:24:49.785>
    closer = 'levkivskyi'
    components = ['Library (Lib)']
    creation = <Date 2019-05-20.16:09:29.855>
    creator = 'pcd1193182'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 36972
    keywords = ['patch']
    message_count = 2.0
    messages = ['342925', '343196']
    nosy_count = 2.0
    nosy_names = ['levkivskyi', 'pcd1193182']
    pr_nums = ['13448']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue36972'
    versions = ['Python 3.8']

    @pcd1193182
    Copy link
    Mannequin Author

    pcd1193182 mannequin commented May 20, 2019

    In order to allow hex() oct() and bin() to be used on user-defined classes, and to check if they can be used on a class at runtime, a SupportsIndex protocol would be useful to integrate. A PR already exists in the backport repo for this issue: python/typing#630

    @pcd1193182 pcd1193182 mannequin added 3.8 only security fixes stdlib Python modules in the Lib dir type-feature A feature request or enhancement labels May 20, 2019
    @ilevkivskyi
    Copy link
    Member

    New changeset 4c7a46e by Ivan Levkivskyi (Paul Dagnelie) in branch 'master':
    bpo-36972: Add SupportsIndex (GH-13448)
    4c7a46e

    @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 stdlib Python modules in the Lib dir type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant