MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / __copy__

Method __copy__

pymongo/synchronous/cursor.py:879–884  ·  view source on GitHub ↗

Support function for `copy.copy()`. .. versionadded:: 2.4

(self)

Source from the content-addressed store, hash-verified

877 return self._read_preference
878
879 def __copy__(self) -> Cursor[_DocumentType]:
880 """Support function for `copy.copy()`.
881
882 .. versionadded:: 2.4
883 """
884 return self._clone(deepcopy=False)
885
886 def __deepcopy__(self, memo: Any) -> Any:
887 """Support function for `copy.deepcopy()`.

Callers

nothing calls this directly

Calls 1

_cloneMethod · 0.95

Tested by

no test coverage detected