File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -461,16 +461,16 @@ enum class return_value_policy : uint8_t {
461
461
return_value_policy::reference and the keep_alive call policy */
462
462
reference_internal,
463
463
464
- /* * This policy is experimental and likely to change in the future. With
465
- this policy, C++ string types are converted to Python bytes,
464
+ /* * With this policy, C++ string types are converted to Python bytes,
466
465
instead of str. This is most useful when a C++ function returns a
467
466
container-like type with nested C++ string types, and py::bytes cannot
468
467
be applied easily. Dictionary like types might not work, for example,
469
468
`Dict[str, bytes]`, because this policy forces all string return values
470
469
to be converted to bytes. Note that this return_value_policy is not
471
470
concerned with lifetime/ownership semantics, like the other policies,
472
471
but the purpose of return_as_bytes is certain to be orthogonal, because
473
- C++ strings are always copied to Python bytes or str. */
472
+ C++ strings are always copied to Python `bytes` or `str`.
473
+ NOTE: This policy is NOT available on master. */
474
474
return_as_bytes
475
475
};
476
476
You can’t perform that action at this time.
0 commit comments