General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
Dr Gamma D
Indently
comments
Comments by "Dr Gamma D" (@DrDeuteron) on "The True Power of "ChainMap" in Python" video.
>>>d1 = dict(a=1, b=2) >>>d2 = dict(c=3, d=4) is much clearer python. It directly types a dictionary with string keys assigned to int literals. Are the type hints just for your IDE? imo human readability comes before your IDE. But why would you type a dict anyway? If you want you special dict[str]=int, just subclass the builtin and assert it.
6