File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -554,16 +554,7 @@ enum class return_value_policy : uint8_t {
554554 but the purpose of _return_as_bytes is certain to be orthogonal, because
555555 C++ strings are always copied to Python `bytes` or `str`.
556556 NOTE: This policy is NOT available on master. */
557- _return_as_bytes,
558-
559- /* * This policy should only be used by PyCLIF to automatically select a
560- return value policy. Legacy PyCLIF automatically decides object lifetime
561- management based on their properties:
562- https://github.com/google/clif/tree/main/clif/python#pointers-references-and-object-ownership
563- With this policy, the return value policy selection is consistent with
564- legacy PyCLIF.
565- NOTE: This policy is NOT available on master. */
566- _clif_automatic
557+ _return_as_bytes
567558};
568559
569560#define PYBIND11_HAS_RETURN_VALUE_POLICY_RETURN_AS_BYTES
Original file line number Diff line number Diff line change @@ -918,7 +918,6 @@ struct smart_holder_type_caster<std::shared_ptr<T>> : smart_holder_type_caster_l
918918 break ;
919919 case return_value_policy::reference_internal:
920920 case return_value_policy::_return_as_bytes:
921- case return_value_policy::_clif_automatic:
922921 break ;
923922 }
924923 if (!src) {
You can’t perform that action at this time.
0 commit comments