From 0b0dd28c2dbead4098bbee4c827f17a3a3b2be88 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 1 May 2010 23:19:15 +0200 Subject: [PATCH] clarification --- src/tutorial/strings.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.26.2