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
4611bcdd
Commit
4611bcdd
authored
Aug 13, 2016
by
Ivan Smirnov
Browse files
Fix rebasing problems in example-python-types
parent
61e3b0bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
example/example-python-types.py
example/example-python-types.py
+5
-5
example/example-python-types.ref
example/example-python-types.ref
+3
-4
No files found.
example/example-python-types.py
View file @
4611bcdd
...
...
@@ -66,14 +66,14 @@ print("__module__(example.ExamplePythonTypes) = %s" % ExamplePythonTypes.__modul
print
(
"__name__(example.ExamplePythonTypes.get_set) = %s"
%
ExamplePythonTypes
.
get_set
.
__name__
)
print
(
"__module__(example.ExamplePythonTypes.get_set) = %s"
%
ExamplePythonTypes
.
get_set
.
__module__
)
print
(
instance
.
get_bytes_from_string
().
decode
())
print
(
instance
.
get_bytes_from_str
().
decode
())
print
(
instance
.
get_str_from_string
())
print
(
instance
.
get_str_from_bytes
())
from
example
import
ConstructorStats
cstats
=
ConstructorStats
.
get
(
ExamplePythonTypes
)
print
(
"Instances not destroyed:"
,
cstats
.
alive
())
instance
=
None
print
(
"Instances not destroyed:"
,
cstats
.
alive
())
print
(
instance
.
get_bytes_from_string
().
decode
())
print
(
instance
.
get_bytes_from_str
().
decode
())
print
(
instance
.
get_str_from_string
())
print
(
instance
.
get_str_from_bytes
())
example/example-python-types.ref
View file @
4611bcdd
...
...
@@ -135,11 +135,10 @@ __name__(example.ExamplePythonTypes) = ExamplePythonTypes
__module__(example.ExamplePythonTypes) = example
__name__(example.ExamplePythonTypes.get_set) = get_set
__module__(example.ExamplePythonTypes.get_set) = example
Instances not destroyed: 1
### ExamplePythonTypes @ 0x1045b80 destroyed
Instances not destroyed: 0
Destructing ExamplePythonTypes
foo
bar
baz
boo
Instances not destroyed: 1
### ExamplePythonTypes @ 0x1045b80 destroyed
Instances not destroyed: 0
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