Python C APi Deep Copy

How to make a deep copy of a python object using the C API? I know I can use copy.deepcopy, but I would prefer to use the C API if I can.

+4
source share
1 answer

The functionality of copy.deepcopy() completely written in Python . I don’t think they would do this if there was one call to C to achieve the same, so I suppose you have to call copy.deepcopy() .

+4
source

Source: https://habr.com/ru/post/1339017/


All Articles