Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
35c51c47
Commit
35c51c47
authored
Aug 13, 2016
by
Ivan Smirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A more strict bytes/str test
parent
b6518590
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
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