clarification
authorStefan Behnel <scoder@users.berlios.de>
Sat, 1 May 2010 21:19:15 +0000 (23:19 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 1 May 2010 21:19:15 +0000 (23:19 +0200)
src/tutorial/strings.rst

index 7fbf6fb1efac26da6bd0c9758ef3b80da80cfc6f..b20452fe56cbf998a5ab4a9c0a36fc095ceeb30d 100644 (file)
@@ -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