Skip to content

Commit 9c3a007

Browse files
committed
Merge pull request #6243 from cgohlke/patch-2
ENH: add support for Python 3.4 ast.NameConstant
2 parents 9910dde + 6f91e24 commit 9c3a007

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/computation/expr.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,9 @@ def visit_UnaryOp(self, node, **kwargs):
548548
def visit_Name(self, node, **kwargs):
549549
return self.term_type(node.id, self.env, **kwargs)
550550

551+
def visit_NameConstant(self, node, **kwargs):
552+
return self.const_type(node.value, self.env)
553+
551554
def visit_Num(self, node, **kwargs):
552555
return self.const_type(node.n, self.env)
553556

0 commit comments

Comments
 (0)