From: Stefan Behnel Date: Sat, 1 May 2010 21:19:15 +0000 (+0200) Subject: clarification X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=0b0dd28c2dbead4098bbee4c827f17a3a3b2be88;p=cython.git clarification --- diff --git a/src/tutorial/strings.rst b/src/tutorial/strings.rst index 7fbf6fb1..b20452fe 100644 --- 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( 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