chaquo / chaquopy

Chaquopy: the Python SDK for Android
https://chaquo.com/chaquopy/
MIT License
748 stars 127 forks source link

Is it possible to deepcopy a PyObject? #1165

Closed IsakTheHacker closed 4 weeks ago

IsakTheHacker commented 1 month ago

Is it possible to take a PyObject and make a deepcopy of it so there also exists 2 copies on the Python side?

mhsmith commented 1 month ago

You can use the standard Python copy functions, which can be accessed from Java or Kotlin using getModule.

IsakTheHacker commented 4 weeks ago

Thank you, I will try that