From 546927b5d0643c9c3cc68cbcc0346bb3a99686af Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 2 Jun 2013 15:50:33 +0200 Subject: [PATCH] add hint on when C++ strings are useful --- docs/src/tutorial/strings.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -------------------- -- 2.7.4