You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python objects are freely shared between threads by the Python interpreter. This means that:
125
-
- Python objects may be created and destroyed by different Python threads; therefore #[pyclass]` objects must be `Send`.
126
-
- Python objects may be accessed by multiple python threads simultaneously; therefore `#[pyclass]` objects must be `Sync`.
125
+
- Python objects may be created and destroyed by different Python threads; therefore `#[pyclass]` objects must be `Send`.
126
+
- Python objects may be accessed by multiple Python threads simultaneously; therefore `#[pyclass]` objects must be `Sync`.
127
127
128
128
For now, don't worry about these requirements; simple classes will already be thread-safe. There is a [detailed discussion on thread-safety](./class/thread-safety.md) later in the guide.
0 commit comments