Commit d7453bd0 authored by Stefan Behnel's avatar Stefan Behnel

remove unclear comment and add docstring to explain why

--HG--
extra : transplant_source : %C4Y%8Fo%10QD%23%A6%FB%B6%AF%3B%D6%C9%A9%09%C4%0D%A8
parent 1512658c
...@@ -2530,6 +2530,9 @@ class GilCheck(VisitorTransform): ...@@ -2530,6 +2530,9 @@ class GilCheck(VisitorTransform):
class TransformBuiltinMethods(EnvTransform): class TransformBuiltinMethods(EnvTransform):
"""
Replace Cython's own cython.* builtins by the corresponding tree nodes.
"""
def visit_SingleAssignmentNode(self, node): def visit_SingleAssignmentNode(self, node):
if node.declaration_only: if node.declaration_only:
......
...@@ -185,7 +185,7 @@ def create_pipeline(context, mode, exclude_classes=()): ...@@ -185,7 +185,7 @@ def create_pipeline(context, mode, exclude_classes=()):
AutoTestDictTransform(context), AutoTestDictTransform(context),
EmbedSignature(context), EmbedSignature(context),
EarlyReplaceBuiltinCalls(context), ## Necessary? EarlyReplaceBuiltinCalls(context), ## Necessary?
TransformBuiltinMethods(context), ## Necessary? TransformBuiltinMethods(context),
MarkParallelAssignments(context), MarkParallelAssignments(context),
ControlFlowAnalysis(context), ControlFlowAnalysis(context),
RemoveUnreachableCode(context), RemoveUnreachableCode(context),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment