File tree 1 file changed +3
-5
lines changed 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -204,10 +204,8 @@ display_driver = None
204
204
# It's now valid to do
205
205
display_driver = DisplayDriverClass(args)
206
206
```
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:
211
209
``` python
212
210
def foo ():
213
211
global bar
@@ -216,7 +214,7 @@ def foo():
216
214
Once again the hazard is avoided by, in global scope, populating ` bar ` prior
217
215
with a placeholder before allowing other contexts to run.
218
216
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.
220
218
221
219
## 1.6 Debugging
222
220
You can’t perform that action at this time.
0 commit comments