projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1231df5
)
clarification
author
Stefan Behnel
<scoder@users.berlios.de>
Sat, 1 May 2010 21:19:15 +0000
(23:19 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sat, 1 May 2010 21:19:15 +0000
(23:19 +0200)
src/tutorial/strings.rst
patch
|
blob
|
history
diff --git
a/src/tutorial/strings.rst
b/src/tutorial/strings.rst
index 7fbf6fb1efac26da6bd0c9758ef3b80da80cfc6f..b20452fe56cbf998a5ab4a9c0a36fc095ceeb30d 100644
(file)
--- a/
src/tutorial/strings.rst
+++ b/
src/tutorial/strings.rst
@@
-153,8
+153,10
@@
explicitly, and the following will print ``A`` (or ``b'A'`` in Python
print( <bytes>char_val )
-The coercion will also happen automatically when assigning to a typed
-variable, e.g.::
+The explicit coercion works for any C integer type. Values outside of
+the range of a ``char`` will raise an ``OverflowError``. Coercion
+will also happen automatically when assigning to a typed variable,
+e.g.::
cdef bytes py_byte_string = char_val