Skip to content

UserList.__getitem__ doesn't account for slices #71826

@staticshock

Description

@staticshock
BPO 27639
Nosy @rhettinger, @bitdancer, @markshannon, @serhiy-storchaka, @vaultah, @staticshock, @mblahay
PRs
  • bpo-27639: Slices of UserLists are instances of UserList now. #13150
  • bpo-27639: slices of UserLists should be instances of UserList #4981
  • bpo-27639: Correct return type for UserList slicing operation #13169
  • [3.7] bpo-27639: Correct return type for UserList slicing operation (GH-13169) #13181
  • [3.7] bpo-27639: Correct return type for UserList slicing operation #13203
  • Files
  • patch: A patch to return a new UserList when UserList is sliced
  • 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-05-26.17:36:51.318>
    created_at = <Date 2016-07-28.06:15:07.780>
    labels = ['3.7', '3.8', 'type-bug', 'library', 'easy']
    title = "UserList.__getitem__ doesn't account for slices"
    updated_at = <Date 2019-05-26.17:36:51.317>
    user = 'https://github.com/staticshock'

    bugs.python.org fields:

    activity = <Date 2019-05-26.17:36:51.317>
    actor = 'SilentGhost'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-05-26.17:36:51.318>
    closer = 'SilentGhost'
    components = ['Library (Lib)']
    creation = <Date 2016-07-28.06:15:07.780>
    creator = 'staticshock'
    dependencies = []
    files = ['43914']
    hgrepos = ['351']
    issue_num = 27639
    keywords = ['patch', 'easy']
    message_count = 20.0
    messages = ['271503', '271532', '271615', '341618', '341644', '341645', '341647', '341684', '341725', '341726', '341747', '341833', '341854', '341919', '341980', '342131', '342596', '343451', '343551', '343570']
    nosy_count = 7.0
    nosy_names = ['rhettinger', 'r.david.murray', 'Mark.Shannon', 'serhiy.storchaka', 'vaultah', 'staticshock', 'mblahay']
    pr_nums = ['13150', '4981', '13169', '13181', '13203']
    priority = 'low'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue27639'
    versions = ['Python 3.7', 'Python 3.8']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of life3.8 (EOL)end of lifeeasystdlibPython modules in the Lib dirtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions