summaryrefslogtreecommitdiff
path: root/Cython/Compiler/ParseTreeTransforms.py
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2018-06-03 22:56:44 +0200
committerStefan Behnel <stefan_ml@behnel.de>2018-06-03 22:56:44 +0200
commitf1afb30f90bc646d0daa9d093abfa9d6e19158cc (patch)
tree06390743a4b3266f3363f0a846480e1928422613 /Cython/Compiler/ParseTreeTransforms.py
parent43c1cb2eddaefadba11ac76ca0f88c75284717ff (diff)
downloadcython-f1afb30f90bc646d0daa9d093abfa9d6e19158cc.tar.gz
Improve a docstring.
Diffstat (limited to 'Cython/Compiler/ParseTreeTransforms.py')
-rw-r--r--Cython/Compiler/ParseTreeTransforms.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Cython/Compiler/ParseTreeTransforms.py b/Cython/Compiler/ParseTreeTransforms.py
index 0cfe727ed..0e449e472 100644
--- a/Cython/Compiler/ParseTreeTransforms.py
+++ b/Cython/Compiler/ParseTreeTransforms.py
@@ -2778,7 +2778,10 @@ class CreateClosureClasses(CythonTransform):
class InjectGilHandling(VisitorTransform, SkipDeclarations):
"""
- Allow certain Python operations inside of GIL blocks by implicitly acquiring the GIL.
+ Allow certain Python operations inside of nogil blocks by implicitly acquiring the GIL.
+
+ Must run before the AnalyseDeclarationsTransform to make sure the GILStatNodes get
+ set up, parallel sections know that the GIL is acquired inside of them, etc.
"""
def __call__(self, root):
self.nogil = False