Commit 546927b5 authored by Stefan Behnel's avatar Stefan Behnel Committed by Stefan Behnel

add hint on when C++ strings are useful

parent 49e31be2
...@@ -67,7 +67,9 @@ using C strings where possible and use Python string objects instead. ...@@ -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 The obvious exception to this is when passing them back and forth
from and to external C code. Also, C++ strings remember their length from and to external C code. Also, C++ strings remember their length
as well, so they can provide a suitable alternative to Python bytes 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 Passing byte strings
-------------------- --------------------
......
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