Skip to content

[Python] Prevent possible double pythonization of template classes#22256

Merged
guitargeek merged 1 commit into
root-project:masterfrom
guitargeek:double_pythonizations
May 13, 2026
Merged

[Python] Prevent possible double pythonization of template classes#22256
guitargeek merged 1 commit into
root-project:masterfrom
guitargeek:double_pythonizations

Conversation

@guitargeek
Copy link
Copy Markdown
Contributor

If the current C++ global namespace containts both template instantiations and the original class template, which can happen depending on the usage pattern, it can happen that the same template instance is pythonized twice. This is prevented with additional conditionals in the pythonization code paths.

If the current C++ global namespace containts both template
instantiations and the original class template, which can happen
depending on the usage pattern, it can happen that the same template
instance is pythonized twice. This is prevented with additional
conditionals in the pythonization code paths.
@github-actions
Copy link
Copy Markdown

Test Results

    22 files      22 suites   3d 10h 25m 13s ⏱️
 3 852 tests  3 852 ✅ 0 💤 0 ❌
76 072 runs  76 072 ✅ 0 💤 0 ❌

Results for commit 7489a25.

@guitargeek guitargeek merged commit 216edb4 into root-project:master May 13, 2026
33 checks passed
@guitargeek guitargeek deleted the double_pythonizations branch May 13, 2026 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants