[docs] [issue20063] Docs imply that set does not support .pop() method

Madison May report at bugs.python.org
Tue Dec 24 16:33:15 CET 2013


New submission from Madison May:

Note item 6 of http://docs.python.org/2.7/library/stdtypes.html#mutable-sequence-types is a bit misleading.  

It states: "The pop() method is only supported by the list and array types. The optional argument i defaults to -1, so that by default the last item is removed and returned."  

However, pop() is also a method of sets, which are neither lists or arrays.

----------
assignee: docs at python
components: Documentation
messages: 206899
nosy: docs at python, madison.may
priority: normal
severity: normal
status: open
title: Docs imply that set does not support .pop() method
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20063>
_______________________________________


More information about the docs mailing list