▲ | anon-3988 8 days ago | |
The average Python developer does not even know what a "PEP" is. Open discussion is good yes, but no one really knows what the average developer wants because they simply does not care if its Python or Java or whatever else. "Some hammers are just shaped weird, oh well, just make do with it." For example, some people that I interview does not "get" why you have to initialize the dict before doing dict[k] += 1. They know that they have to do some ritual of checking for k in dict and dict[k] = 0. But they don't get that += desugars into dict[k] = dict[k] + 1. | ||
▲ | Waterluvian 8 days ago | parent [-] | |
defaultdict is so regularly useful for just this reason! |