This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Set documentation is incorrect
Type: Stage:
Components: Documentation Versions: Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: rhettinger Nosy List: docs@python, nmarrow, python-dev, rhettinger
Priority: normal Keywords:

Created on 2016-09-12 17:07 by nmarrow, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (3)
msg276070 - (view) Author: Nathan Marrow (nmarrow) Date: 2016-09-12 17:07
The library documentation for set intersection gives this definition:
intersection(other, ...)

For any set, s, however, intersection may be called with no arguments, which returns the same set. The documentation, as written, implies such usage would raise a TypeError. I believe it should be intersection(*others). Same for difference, union, intersection_update, difference_update, and update.
msg276187 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2016-09-13 06:39
New changeset 5d93a9b4f0e8 by Raymond Hettinger in branch '3.5':
Issue #28104: More accurately document set method signatures
https://hg.python.org/cpython/rev/5d93a9b4f0e8
msg276188 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2016-09-13 06:43
New changeset f30a76f0d477 by Raymond Hettinger in branch '2.7':
Issue #28104: More accurately document set method signatures
https://hg.python.org/cpython/rev/f30a76f0d477
History
Date User Action Args
2022-04-11 14:58:36adminsetgithub: 72291
2016-09-13 06:45:44rhettingersetstatus: open -> closed
resolution: fixed
2016-09-13 06:43:17python-devsetmessages: + msg276188
2016-09-13 06:39:17python-devsetnosy: + python-dev
messages: + msg276187
2016-09-13 02:20:19rhettingersetassignee: docs@python -> rhettinger
2016-09-12 17:36:58r.david.murraysetnosy: + rhettinger
2016-09-12 17:07:31nmarrowcreate