Commit 72c85497 authored by Matus Valo's avatar Matus Valo Committed by GitHub

Update error message in documentation (GH-4244)

parent c74e08a0
...@@ -553,8 +553,8 @@ attempt something like:: ...@@ -553,8 +553,8 @@ attempt something like::
cdef char *s cdef char *s
s = pystring1 + pystring2 s = pystring1 + pystring2
then Cython will produce the error message ``Obtaining char* from temporary then Cython will produce the error message ``Storing unsafe C derivative of temporary
Python value``. The reason is that concatenating the two Python strings Python reference``. The reason is that concatenating the two Python strings
produces a new Python string object that is referenced only by a temporary produces a new Python string object that is referenced only by a temporary
internal variable that Cython generates. As soon as the statement has finished, internal variable that Cython generates. As soon as the statement has finished,
the temporary variable will be decrefed and the Python string deallocated, the temporary variable will be decrefed and the Python string deallocated,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment