We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dea5660 commit 691241aCopy full SHA for 691241a
include/pybind11/detail/internals.h
@@ -738,8 +738,6 @@ class internals_pp_manager {
738
"pybind11::detail::internals_pp_manager::create_pp_content_once() "
739
"FAILED: reentrant call detected while fetching pybind11 internals!");
740
}
741
- // Each interpreter can only create its internals once.
742
- pps_have_created_content_.insert(pp);
743
744
745
// Assume the GIL is held here. May call back into Python.
@@ -757,6 +755,9 @@ class internals_pp_manager {
757
755
// Install the created content.
758
756
pp->swap(tmp);
759
+
+ // Each interpreter can only create its internals once.
760
+ pps_have_created_content_.insert(pp);
761
762
763
0 commit comments