Skip to content

bytes constructor accepts more than one argument even if the first one is not a string #64534

Description

@rndblnch
mannequin
BPO 20335
Nosy @serhiy-storchaka
Files
  • bytesobject.patch: patch that puts the existing check at the right place
  • issue20335.patch
  • 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/serhiy-storchaka'
    closed_at = <Date 2014-12-02.07:39:08.991>
    created_at = <Date 2014-01-21.21:45:37.929>
    labels = ['interpreter-core', 'type-bug']
    title = 'bytes constructor accepts more than one argument even if the first one is not a string'
    updated_at = <Date 2014-12-02.07:39:08.989>
    user = 'https://bugs.python.org/rndblnch'

    bugs.python.org fields:

    activity = <Date 2014-12-02.07:39:08.989>
    actor = 'serhiy.storchaka'
    assignee = 'serhiy.storchaka'
    closed = True
    closed_date = <Date 2014-12-02.07:39:08.991>
    closer = 'serhiy.storchaka'
    components = ['Interpreter Core']
    creation = <Date 2014-01-21.21:45:37.929>
    creator = 'rndblnch'
    dependencies = []
    files = ['33600', '37337']
    hgrepos = []
    issue_num = 20335
    keywords = ['patch']
    message_count = 6.0
    messages = ['208707', '208710', '227675', '231952', '231976', '231977']
    nosy_count = 3.0
    nosy_names = ['rndblnch', 'python-dev', 'serhiy.storchaka']
    pr_nums = []
    priority = 'low'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue20335'
    versions = ['Python 3.4', 'Python 3.5']

    Metadata

    Metadata

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions