Sujet : Re: Is there a way to implement the ** operator on a custom object
De : ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes : comp.lang.pythonDate : 10. Feb 2024, 14:24:39
Autres entêtes
Organisation : Stefan Ram
Message-ID : <sub-20240210142355@ram.dialup.fu-berlin.de>
References : 1 2
Cameron Simpson <
cs@cskk.id.au> writes:
That said, I have some classes which subclass dict, int, str and
namedtuple.
Consider subclassing
collections.UserDict instead of dict and
collections.UserString instead of str.