Add MutableSet.update?

I was trying to use `collections.abc.MutableSet` today, and noticed that it does not define an `update` method. This is a very useful method that is present on the builtin `set` class, and seems to fit naturally with the other methods. Was omitting this method intentional? Thanks & best wishes, Lucas Wiman

On Sat, Mar 10, 2018 at 3:24 AM, MRAB <python@mrabarnett.plus.com> wrote:
isn't that an "in-place operator" i.e. if it's a mutable object it should mutate rather than rebinding? -CHB
-- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker@noaa.gov

On Sat, Mar 10, 2018 at 2:45 PM, Chris Barker <chris.barker@noaa.gov> wrote:
Normally on a mutable object, |= will mutate the object in-place AND ALSO rebind the name to the same object it started with (like writing 'x = x'). The latter part raises an error if 'x' is not a legal target for assignment. -n -- Nathaniel J. Smith -- https://vorpus.org

On Sat, Mar 10, 2018 at 3:24 AM, MRAB <python@mrabarnett.plus.com> wrote:
isn't that an "in-place operator" i.e. if it's a mutable object it should mutate rather than rebinding? -CHB
-- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker@noaa.gov

On Sat, Mar 10, 2018 at 2:45 PM, Chris Barker <chris.barker@noaa.gov> wrote:
Normally on a mutable object, |= will mutate the object in-place AND ALSO rebind the name to the same object it started with (like writing 'x = x'). The latter part raises an error if 'x' is not a legal target for assignment. -n -- Nathaniel J. Smith -- https://vorpus.org
participants (5)
-
Chris Barker
-
Guido van Rossum
-
Lucas Wiman
-
MRAB
-
Nathaniel Smith