projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49e31be
)
add hint on when C++ strings are useful
author
Stefan Behnel
<stefan_ml@behnel.de>
Sun, 2 Jun 2013 13:50:33 +0000
(15:50 +0200)
committer
Stefan Behnel
<stb@skoobe.de>
Sun, 14 Jul 2013 11:42:48 +0000
(13:42 +0200)
docs/src/tutorial/strings.rst
patch
|
blob
|
history
diff --git
a/docs/src/tutorial/strings.rst
b/docs/src/tutorial/strings.rst
index
0e6ef81
..
0d45554
100644
(file)
--- 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
--------------------