aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/libpyside/pysidestaticstrings.cpp
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2021-03-22 17:10:51 +0100
committerChristian Tismer <tismer@stackless.com>2021-03-26 16:27:52 +0100
commit773e1105251a03131cbbdf4abcb0580cb425ff60 (patch)
tree0d9185db4d3087c75476da116ce560804a0e1465 /sources/pyside6/libpyside/pysidestaticstrings.cpp
parentb89b8daeeac7b2b22c3887fa83fe0b986f9baec7 (diff)
Nuitka: Allow for compiled functions and methods too
The author of this patch is Kay Hayen. He writes: * Add support for compiled methods to the bindings manager. * For slots, implement lookup of code objects for compiled methods and functions with a new function avoiding code duplication. * Look up attributes of slots, e.g. code objects that Nuitka also has as well, methods have "im_func" and "im_self". * Sometimes calling "tp_descr_get" Python object slot is the universal thing to do, covering all types. * Detect compiled methods as receiver targets too. Task-number: PYSIDE-1523 Change-Id: I0277b583840710476198ed5e1ccaaccd672e7638 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6/libpyside/pysidestaticstrings.cpp')
-rw-r--r--sources/pyside6/libpyside/pysidestaticstrings.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/sources/pyside6/libpyside/pysidestaticstrings.cpp b/sources/pyside6/libpyside/pysidestaticstrings.cpp
index 7705fd058..8f74cd19f 100644
--- a/sources/pyside6/libpyside/pysidestaticstrings.cpp
+++ b/sources/pyside6/libpyside/pysidestaticstrings.cpp
@@ -56,12 +56,15 @@ STATIC_STRING_IMPL(qtConnect, "connect")
STATIC_STRING_IMPL(qtDisconnect, "disconnect")
STATIC_STRING_IMPL(qtEmit, "emit")
STATIC_STRING_IMPL(dict_ring, "dict_ring")
+STATIC_STRING_IMPL(im_func, "im_func")
+STATIC_STRING_IMPL(im_self, "im_self")
STATIC_STRING_IMPL(name, "name")
STATIC_STRING_IMPL(property, "property")
STATIC_STRING_IMPL(select_id, "select_id")
} // namespace PyName
namespace PyMagicName
{
+STATIC_STRING_IMPL(code, "__code__")
STATIC_STRING_IMPL(doc, "__doc__")
STATIC_STRING_IMPL(func, "__func__")
STATIC_STRING_IMPL(name, "__name__")