Issue 28104: Set documentation is incorrect (original) (raw)

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.