From 42bd0e5d7cbbdc2641b6c3368cc7659d34795cff Mon Sep 17 00:00:00 2001 From: Keming Date: Thu, 28 Nov 2024 19:05:55 +0800 Subject: [PATCH] Update class.md (#4739) --- guide/src/class.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guide/src/class.md b/guide/src/class.md index 5d2c8435416..7229330a361 100644 --- a/guide/src/class.md +++ b/guide/src/class.md @@ -122,8 +122,8 @@ create_interface!(FloatClass, String); #### Must be thread-safe Python objects are freely shared between threads by the Python interpreter. This means that: -- Python objects may be created and destroyed by different Python threads; therefore #[pyclass]` objects must be `Send`. -- Python objects may be accessed by multiple python threads simultaneously; therefore `#[pyclass]` objects must be `Sync`. +- Python objects may be created and destroyed by different Python threads; therefore `#[pyclass]` objects must be `Send`. +- Python objects may be accessed by multiple Python threads simultaneously; therefore `#[pyclass]` objects must be `Sync`. 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.