diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-01-08 12:26:07 +0100 |
|---|---|---|
| committer | Jussi Pakkanen <jussi.pakkanen@mailbox.org> | 2025-06-17 12:29:56 +0300 |
| commit | 2f47d0b4b15e27aa62f439c4b65282771149cc7c (patch) | |
| tree | d50002095ec899f5db9d037ff658e575e86c490d /mesonbuild/modules/python.py | |
| parent | f3366a7e543f69844bd3658db65c28295912db79 (diff) | |
| download | meson-2f47d0b4b15e27aa62f439c4b65282771149cc7c.tar.gz | |
interpreter: make operators per-class
Do not call update() and Enum.__hash__ a gazillion times; operators
are the same for every instance of the class. In order to access
the class for non-trivial operators, the operators are first marked
using a decorator, and then OPERATORS is built via __init_subclass__.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mesonbuild/modules/python.py')
0 files changed, 0 insertions, 0 deletions
