Description
Shiboken uses the full type name while generating python types, even if the namespace (parent type) is marked as not generated.
For example.
namespace Foo {
class MyType;
}
if I mark namespace "Foo" as not generated, I expect the "MyType" to be represented as "Module.MyType" but that is not true. Shiboken represents it as "Module.Foo.MyType".
from Module import MyType
o = MyType()
print(o) """ prints Module.Foo.MyType
That causes a problem on shiboken type resolution based on type name too.
Attachments
Issue Links
- relates to
-
PYSIDE-1133 Renaming via "target-lang-name" is not reflected in consuming function signatures
- Closed
-
PYSIDE-1075 Fail to generate function in namespaces
- Closed
- resulted in
-
PYSIDE-1326 Failed to generate code for QFlags on hidden (1st order) namespace
- Closed
For Gerrit Dashboard: PYSIDE-1074 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
270695,10 | Fix type name generation for types inside of namespace | 5.12 | pyside/pyside-setup | Status: NEW | -1 | 0 |
275690,1 | Fix type name generation for types inside of namespace | 5.12.5 | pyside/pyside-setup | Status: ABANDONED | 0 | 0 |
278879,8 | shiboken: Give the type system entries a pointer to their parent | 5.14 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
278880,10 | shiboken: Store the unqualified entry name in TypeEntry | 5.14 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
278935,8 | libsample: Test renaming via "target-lang-name" attribute | 5.15 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
279087,4 | Properly nest types in type system files | 5.14 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
279094,9 | shiboken: Refactor target lang name | 5.14 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
279095,1 | Use nameV2() | 5.14 | pyside/pyside-setup | Status: ABANDONED | -1 | 0 |
279566,7 | shiboken: Clean up handling of enclosing class | 5.15 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
279989,2 | shiboken: Refactor lookForEnumsInClassesNotToBeGenerated() | 5.14 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
279990,6 | shiboken: Fix classes in hidden namespaces | 5.15 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
315680,6 | shiboken2: Consolidate tests for invisible namespaces | 5.15 | pyside/pyside-setup | Status: MERGED | +2 | 0 |