[issue22089] collections.MutableSet does not provide update method

Roy Wellington report at bugs.python.org
Sun Jul 27 08:06:34 CEST 2014


New submission from Roy Wellington:

Inheriting from collections.MutableSet mixes in several methods, however, it does not mix in a .update method. This can cause a variety of confusion if you expect a MutableSet to act like a set. Moreover, MutableMapping does provide a .update method, which makes me think this is a bug.

I've attached a file that creates a bare-bones MutableSet, and shows the difference.

Is this a bug, or is there some reason that MutableSet doesn't provide an update method?

----------
components: Library (Lib)
files: ms.py
messages: 224105
nosy: roy.wellington
priority: normal
severity: normal
status: open
title: collections.MutableSet does not provide update method
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file36125/ms.py

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


More information about the Python-bugs-list mailing list