cloudpipe / cloudpipe/cloudpickle
Cannot ignore locks with cloudpickle
Open
- Dominant language
- Python
- Stars
- 1.9k
- Forks
- 195
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 1
Description
I have an object that I would like to pickle. Unfortunately, the object has a lock within it.
Is there a way to set up cloudpickle to ignore locks so that it doesn't crash?
```python
import threading
import cloudpickle
class ThirdPartyClass:
def __init__(self):
self.internal_lock = threading.RLock()
self.something_I_want_pickled = 'important string'
cloudpickle.dumps(ThirdPartyClass())
```
See also #81
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.