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
35c51c47
Commit
35c51c47
authored
Aug 13, 2016
by
Ivan Smirnov
Browse files
A more strict bytes/str test
parent
b6518590
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
example/example-python-types.py
example/example-python-types.py
+2
-2
No files found.
example/example-python-types.py
View file @
35c51c47
...
@@ -68,8 +68,8 @@ print("__module__(example.ExamplePythonTypes.get_set) = %s" % ExamplePythonTypes
...
@@ -68,8 +68,8 @@ print("__module__(example.ExamplePythonTypes.get_set) = %s" % ExamplePythonTypes
print
(
instance
.
get_bytes_from_string
().
decode
())
print
(
instance
.
get_bytes_from_string
().
decode
())
print
(
instance
.
get_bytes_from_str
().
decode
())
print
(
instance
.
get_bytes_from_str
().
decode
())
print
(
instance
.
get_str_from_string
())
print
(
instance
.
get_str_from_string
()
.
encode
().
decode
()
)
print
(
instance
.
get_str_from_bytes
())
print
(
instance
.
get_str_from_bytes
()
.
encode
().
decode
()
)
from
example
import
ConstructorStats
from
example
import
ConstructorStats
...
...
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