I know i am unearthing this topic, yet I noticed the fromkeys
method is a static one, and I think it could take an original dict as an argument, and create an output dict with the provided keys associated to values taken from the original one. This could help clean bits of user code without adding methods. It could be used in conjunction with the operations on set
s of keys. It also fits well with the intuition coming from the name of the method, I think.