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

Method __copy__

pymongo/asynchronous/cursor.py:881–886  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

_cloneMethod · 0.95

Tested by

no test coverage detected