JuliaPy / JuliaPy/PythonCall.jl
Support __copy__ and __deepcopy__?
- Dominant language
- Julia
- Stars
- 1.1k
- Forks
- 86
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 3
Description
`juliacall.AnyValue.__copy__` and `__deepcopy__` could call Julia's `copy` and `deepcopy`.
Conversely, `copy(::Py)` and `deepcopy_internal(::Py, ::IdDict)` could call Python's `copy.copy` and `copy.deepcopy`.
https://docs.python.org/3/library/copy.html
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the Julia APIs named in the issue: juliacall.AnyValue.__copy__, __deepcopy__, copy(::Py), and deepcopy_internal(::Py, ::IdDict). Read the linked Python copy documentation and trace the existing Julia/Python object-copy entry points. Done means the requested copy and deepcopy operations delegate correctly in both directions, with behavior verified by appropriate tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia, python
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100