Page MenuHomePhabricator
Paste P6866

(An Untitled Masterwork)
ActivePublic

Authored by awight on Mar 20 2018, 6:44 PM.
Tags
None
Referenced Files
F15918671:
Mar 20 2018, 6:44 PM
Subscribers
None
Python 3.6.2 (v3.6.2:5fd33b5926, Jul 16 2017, 20:11:06)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from collections import defaultdict
>>> l=defaultdict(list)
>>> l['foo']
[]
>>> 'foo' in l
True
>>> 'bar' in l
False