"Barry A. Warsaw" wrote: > > >>>>> "M" == M <mal@lemburg.com> writes: > > M> The following one-liner already does what you want: > > M> d[word] = d.get(word, []).append('world') > > M> ... and it's in no way more readable than your proposed > M> .put() line ;-) > > Does that mean it's less readable? :) I find these .go_home().get_some_cheese().and_eat()... constructions rather obscure. -- Marc-Andre Lemburg ______________________________________________________________________ Business: http://www.lemburg.com/ Python Pages: http://www.lemburg.com/python/
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