artcom0!pf@artcom-gmbh.de writes: > Note the similarities to {}.update(dict), but update replaces existing > entries in self, which is sometimes not desired. I know, that supplement > can also simulated with: Peter, I like this! > tmp = dict.copy() > tmp.update(self) > self.data = d I presume you mean "self.data = tmp"; "self.data.update(tmp)" would be just a little more robust, at the cost of an additional update. -Fred -- Fred L. Drake, Jr. <fdrake at acm.org> Corporation for National Research Initiatives
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