Skip to content

memoryview.__len__ should raise an exception for 0d buffers #83791

@EricWieser

Description

@EricWieser
BPO 39610
Nosy @skrah, @serhiy-storchaka
PRs
  • gh-83791: Raise TypeError for len(memoryview_0d) #18463
  • 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 = 'https://github.com/skrah'
    closed_at = None
    created_at = <Date 2020-02-11.15:42:52.359>
    labels = ['interpreter-core', '3.8', 'type-bug', '3.7', '3.9']
    title = 'memoryview.__len__ should raise an exception for 0d buffers'
    updated_at = <Date 2020-09-07.17:25:22.315>
    user = 'https://bugs.python.org/EricWieser'

    bugs.python.org fields:

    activity = <Date 2020-09-07.17:25:22.315>
    actor = 'skrah'
    assignee = 'skrah'
    closed = False
    closed_date = None
    closer = None
    components = ['Interpreter Core']
    creation = <Date 2020-02-11.15:42:52.359>
    creator = 'Eric Wieser'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 39610
    keywords = ['patch']
    message_count = 7.0
    messages = ['361821', '361840', '363159', '376512', '376518', '376519', '376520']
    nosy_count = 3.0
    nosy_names = ['skrah', 'serhiy.storchaka', 'Eric Wieser']
    pr_nums = ['18463']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue39610'
    versions = ['Python 3.5', 'Python 3.6', 'Python 3.7', 'Python 3.8', 'Python 3.9']

    Metadata

    Metadata

    Assignees

    Labels

    3.7 (EOL)end of life3.8 (EOL)end of life3.9 (EOL)end of lifeinterpreter-core(Objects, Python, Grammar, and Parser dirs)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