Skip to content

SystemError on calling len() if __len__() doesn't return an int #47979

@hagen

Description

@hagen
mannequin
BPO 3729
Nosy @birkenfeld, @amauryfa, @benjaminp
Files
  • len_check3.diff: patch fixing the SystemError and clipping to sys.maxsize, adds tests
  • 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 2009-02-10.12:52:53.722>
    created_at = <Date 2008-08-29.14:59:07.938>
    labels = ['type-bug']
    title = "SystemError on calling len() if __len__() doesn't return an int"
    updated_at = <Date 2009-02-10.12:52:53.716>
    user = 'https://bugs.python.org/hagen'

    bugs.python.org fields:

    activity = <Date 2009-02-10.12:52:53.716>
    actor = 'benjamin.peterson'
    assignee = 'none'
    closed = True
    closed_date = <Date 2009-02-10.12:52:53.722>
    closer = 'benjamin.peterson'
    components = []
    creation = <Date 2008-08-29.14:59:07.938>
    creator = 'hagen'
    dependencies = []
    files = ['11349']
    hgrepos = []
    issue_num = 3729
    keywords = ['patch']
    message_count = 10.0
    messages = ['72141', '72142', '72143', '72145', '72151', '72153', '72195', '72196', '72360', '81545']
    nosy_count = 4.0
    nosy_names = ['georg.brandl', 'amaury.forgeotdarc', 'benjamin.peterson', 'hagen']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue3729'
    versions = ['Python 2.6', 'Python 3.0']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      type-bugAn unexpected behavior, bug, or error
      No fields configured for issues without a type.

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions