Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
04358b02
Commit
04358b02
authored
Oct 01, 2015
by
Wenzel Jakob
Browse files
Always record the __module__ in newly created Python types
parent
96c10530
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
include/pybind/pybind.h
include/pybind/pybind.h
+1
-2
No files found.
include/pybind/pybind.h
View file @
04358b02
...
...
@@ -521,8 +521,7 @@ public:
m_ptr
=
(
PyObject
*
)
type
;
/* Needed by pydoc */
if
(((
module
&
)
scope
).
check
())
attr
(
"__module__"
)
=
scope_name
;
attr
(
"__module__"
)
=
scope_name
;
auto
&
type_info
=
detail
::
get_internals
().
registered_types
[
tinfo
];
type_info
.
type
=
(
PyTypeObject
*
)
m_ptr
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment