Message224208
It's not a bug. Guido designed the Set ABC to use operators instead of the named methods. The += operator for the __ior__() method that provides much of the same functionality.
In your concrete class, you can add an update() method easily:
class MySet(Set):
update = Set.__ior__()
Mutable mapping has an update() method because it is an essential part of the mapping API and because there is no operator equivalent as there is for the set API. |
|
Date |
User |
Action |
Args |
2014-07-29 00:58:39 | rhettinger | set | recipients:
+ rhettinger, roy.wellington |
2014-07-29 00:58:39 | rhettinger | set | messageid: <1406595519.66.0.816298186339.issue22089@psf.upfronthosting.co.za> |
2014-07-29 00:58:39 | rhettinger | link | issue22089 messages |
2014-07-29 00:58:39 | rhettinger | create | |
|