> 3. Have ImmutableSet keep a reference to the original iterable. Add an ImmutableSet.refresh() method that rebuilds ._data from > the iterable. Add a Set.refresh() method that triggers ImmutableSet.refresh() where possible. The goal is to improve the > usability of sets of sets where the inner sets have been updated after the outer set was created. > > >>> inner = Set('abracadabra') > >>> outer = Set([inner]) > >>> inner.add('z') # now the outer set is out-of-date > >>> outer.refresh() # now it is current > >>> outer > Set(['a', 'c', 'r', 'z', 'b', 'd']) Make that: Set(ImmutableSet('a', 'c', 'r', 'z', 'b', 'd']))
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4