diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-07-23 08:38:45 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-07-24 14:06:43 +0200 |
| commit | 2ef1db2d6ee688575757fe9490b9da56ffa87d69 (patch) | |
| tree | 59095d58eb9bf470ec36e0efc6c6490b3fddcba9 | |
| parent | dd79acd33c8b7e812171a162ca170035b219b1ba (diff) | |
shibokenmodule: Output id() (PyObject *address) in dump()
Task-number: PYSIDE-3143
Change-Id: I2a7467e32adc180a41ba4ed992644a943194161b
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
| -rw-r--r-- | sources/shiboken6/libshiboken/basewrapper.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/shiboken6/libshiboken/basewrapper.cpp b/sources/shiboken6/libshiboken/basewrapper.cpp index c765bdb79..51c4b918d 100644 --- a/sources/shiboken6/libshiboken/basewrapper.cpp +++ b/sources/shiboken6/libshiboken/basewrapper.cpp @@ -1963,6 +1963,7 @@ std::string info(SbkObject *self) { std::ostringstream s; + s << "id................ " << self << '\n'; if (self->d && self->d->cptr) { const std::vector<PyTypeObject *> bases = getBases(self); @@ -1985,7 +1986,7 @@ std::string info(SbkObject *self) if (self->d->parentInfo && self->d->parentInfo->parent) { s << "parent............ "; Shiboken::AutoDecRef parent(PyObject_Str(reinterpret_cast<PyObject *>(self->d->parentInfo->parent))); - s << String::toCString(parent) << "\n"; + s << String::toCString(parent) << '\n'; } if (self->d->parentInfo && !self->d->parentInfo->children.empty()) { |
