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 <rep...@bugs.python.org>
<http://bugs.python.org/issue27639>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to