Skip to content

Making a class formattable as hex/oct integer with printf-style formatting requires both __int__ and __index__ for no good reason #77183

Description

@MojoVampire
BPO 33002
Nosy @mdickinson, @ericvsmith, @serhiy-storchaka, @MojoVampire, @tirkarthi
Superseder
  • bpo-36048: Deprecate implicit truncating when convert Python numbers to C integers: use index, not int
  • 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-03-14.14:58:36.318>
    created_at = <Date 2018-03-05.21:07:14.038>
    labels = ['interpreter-core', '3.7', '3.8']
    title = 'Making a class formattable as hex/oct integer with printf-style formatting requires both __int__ and __index__ for no good reason'
    updated_at = <Date 2019-03-14.14:58:36.316>
    user = 'https://github.com/MojoVampire'

    bugs.python.org fields:

    activity = <Date 2019-03-14.14:58:36.316>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-03-14.14:58:36.318>
    closer = 'serhiy.storchaka'
    components = ['Interpreter Core']
    creation = <Date 2018-03-05.21:07:14.038>
    creator = 'josh.r'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 33002
    keywords = []
    message_count = 5.0
    messages = ['313285', '313286', '313288', '313311', '337928']
    nosy_count = 5.0
    nosy_names = ['mark.dickinson', 'eric.smith', 'serhiy.storchaka', 'josh.r', 'xtreak']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '36048'
    type = None
    url = 'https://bugs.python.org/issue33002'
    versions = ['Python 3.7', 'Python 3.8']

    Activity

    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

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions