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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
241b8677
Commit
241b8677
authored
Jun 22, 2018
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor improvements to docs examples.
parent
b43c08b3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
docs/examples/tutorial/string/for_bytes.pyx
docs/examples/tutorial/string/for_bytes.pyx
+1
-1
docs/examples/tutorial/string/for_char.pyx
docs/examples/tutorial/string/for_char.pyx
+1
-1
docs/examples/tutorial/string/if_char_in.pyx
docs/examples/tutorial/string/if_char_in.pyx
+1
-1
No files found.
docs/examples/tutorial/string/for_bytes.pyx
View file @
241b8677
cdef
bytes
bytes_string
=
b
'hello world'
cdef
bytes
bytes_string
=
b
"hello to A bytes' world"
cdef
char
c
for
c
in
bytes_string
:
...
...
docs/examples/tutorial/string/for_char.pyx
View file @
241b8677
cdef
char
*
c_string
=
"Hello world"
cdef
char
*
c_string
=
"Hello
to A C-string's
world"
cdef
char
c
for
c
in
c_string
[:
11
]:
...
...
docs/examples/tutorial/string/if_char_in.pyx
View file @
241b8677
...
...
@@ -2,4 +2,4 @@ cpdef void is_in(Py_UCS4 uchar_val):
if
uchar_val
in
u'abcABCxY'
:
print
(
"The character is in the string."
)
else
:
print
(
"The character is
n'
t in the string"
)
print
(
"The character is
no
t in the string"
)
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