Skip to content

startswith and endswith don't accept None as slice index #56037

@hkBst

Description

@hkBst
mannequin
BPO 11828
Nosy @gvanrossum, @rhettinger, @jcea, @ezio-melotti, @bitdancer
Files
  • issue-11828-v1.patch: Use _ParseTupleFinds() for count, startswith and endswith + tests
  • issue-11828-v2.patch: Curly brackets adhere PEP 7
  • issue-11828-error-msg-tests.patch: Tests for wrong error messages in rfind(), etc.
  • issue-11828-v3.patch: Complete patch for {unicode,bytes,bytearray}object
  • issue-11828-v4-3.1.patch: Refined patch against 3.1 branch
  • issue-11828-v4-2.7.patch: Refined patch against 2.7 branch
  • 87be2a5e22ed.diff
  • 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/jcea'
    closed_at = <Date 2011-04-20.15:59:51.700>
    created_at = <Date 2011-04-11.15:09:08.234>
    labels = ['type-bug']
    title = "startswith and endswith don't accept None as slice index"
    updated_at = <Date 2011-11-08.08:43:09.161>
    user = 'https://bugs.python.org/hkBst'

    bugs.python.org fields:

    activity = <Date 2011-11-08.08:43:09.161>
    actor = 'gvanrossum'
    assignee = 'jcea'
    closed = True
    closed_date = <Date 2011-04-20.15:59:51.700>
    closer = 'python-dev'
    components = ['None']
    creation = <Date 2011-04-11.15:09:08.234>
    creator = 'hkBst'
    dependencies = []
    files = ['21620', '21626', '21627', '21629', '21655', '21656', '21739']
    hgrepos = ['21', '22']
    issue_num = 11828
    keywords = ['patch']
    message_count = 20.0
    messages = ['133527', '133528', '133530', '133531', '133532', '133538', '133547', '133551', '133570', '133578', '133669', '133679', '133680', '133681', '133695', '133976', '134000', '134086', '134160', '147278']
    nosy_count = 9.0
    nosy_names = ['gvanrossum', 'rhettinger', 'jcea', 'ezio.melotti', 'r.david.murray', 'santoso.wijaya', 'python-dev', 'torsten.becker', 'hkBst']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue11828'
    versions = ['Python 3.1', 'Python 2.7', 'Python 3.2', 'Python 3.3']

    Metadata

    Metadata

    Assignees

    Labels

    type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions