Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
86fada22
Commit
86fada22
authored
Sep 14, 2014
by
scoder
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #321 from kmike/patch-1
DOC initialize string with bytes
parents
24eace85
3dece8e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
docs/src/tutorial/strings.rst
docs/src/tutorial/strings.rst
+1
-1
No files found.
docs/src/tutorial/strings.rst
View file @
86fada22
...
@@ -456,7 +456,7 @@ and then copies its buffer into a new C++ string.
...
@@ -456,7 +456,7 @@ and then copies its buffer into a new C++ string.
For the other direction, efficient decoding support is available
For the other direction, efficient decoding support is available
in Cython 0.17 and later::
in Cython 0.17 and later::
cdef string s = string('abcdefg')
cdef string s = string(
b
'abcdefg')
ustring1 = s.decode('UTF-8')
ustring1 = s.decode('UTF-8')
ustring2 = s[2:-2].decode('UTF-8')
ustring2 = s[2:-2].decode('UTF-8')
...
...
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