cloudpipe / cloudpipe/cloudpickle

Cannot ignore locks with cloudpickle

Open
#447 3 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.