[New-bugs-announce] [issue27639] UserList.__getitem__ doesn't account for slices
Anton Backer
report at bugs.python.org
Thu Jul 28 02:15:07 EDT 2016
New submission from Anton Backer:
The docs for UserList say:
> List operations which return a new sequence attempt to create an instance of the actual implementation class.
However, UserList([])[:] returns a list, not a UserList.
----------
components: Library (Lib)
files: patch
messages: 271503
nosy: staticshock
priority: normal
severity: normal
status: open
title: UserList.__getitem__ doesn't account for slices
type: behavior
versions: Python 3.5
Added file: http://bugs.python.org/file43914/patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27639>
_______________________________________
More information about the New-bugs-announce
mailing list