Skip to content

Commit c0dcaca

Browse files
committed
THREADING.md: Correct error re imports.
1 parent 076f019 commit c0dcaca

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

v3/docs/THREADING.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,8 @@ display_driver = None
204204
# It's now valid to do
205205
display_driver = DisplayDriverClass(args)
206206
```
207-
The hazard with globals can occur in other ways. Importing a module while other
208-
contexts are accessing globals can be problematic as that module might create
209-
global objects. The following would present a hazard if `foo` were run for the
210-
first time while globals were being accessed:
207+
The hazard with globals can occur in other ways. The following would present a
208+
hazard if `foo` were run for the first time while globals were being accessed:
211209
```python
212210
def foo():
213211
global bar
@@ -216,7 +214,7 @@ def foo():
216214
Once again the hazard is avoided by, in global scope, populating `bar` prior
217215
with a placeholder before allowing other contexts to run.
218216

219-
If globals must be created and destroyed dynaically, a lock must be used.
217+
If globals must be created and destroyed dynamically, a lock must be used.
220218

221219
## 1.6 Debugging
222220

0 commit comments

Comments
 (0)