From: Stefan Behnel Date: Sun, 2 Jun 2013 13:50:33 +0000 (+0200) Subject: add hint on when C++ strings are useful X-Git-Tag: 0.20b1~324^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=546927b5d0643c9c3cc68cbcc0346bb3a99686af;p=platform%2Fupstream%2Fpython-cython.git add hint on when C++ strings are useful --- diff --git a/docs/src/tutorial/strings.rst b/docs/src/tutorial/strings.rst index 0e6ef81..0d45554 100644 --- a/docs/src/tutorial/strings.rst +++ b/docs/src/tutorial/strings.rst @@ -67,7 +67,9 @@ using C strings where possible and use Python string objects instead. The obvious exception to this is when passing them back and forth from and to external C code. Also, C++ strings remember their length as well, so they can provide a suitable alternative to Python bytes -objects in some cases. +objects in some cases, e.g. when reference counting is not needed +within a well defined context. + Passing byte strings --------------------