I know what *
and **
do in Python (e.g. What do the * (star) and ** (double star) operators mean in a function call?). But if I want to create my own "dict-like" class. I'm wondering if **
maps to some dunder method that I can add to my class such that my class can respond to **
in a similar way. If not a dunder, is there some other way to create a fully dict-like class that does support a **
prefix operator?
(Bonus points for the same on a tuple-like class for *
, but it's the dict version I need a solution to!)