MCPcopy
hub / github.com/hylang/hy / _nonconst

Method _nonconst

hy/compiler.py:527–530  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

525 return new_name
526
527 def _nonconst(self, name):
528 if str(name) in ("None", "True", "False"):
529 raise self._syntax_error(name, "Can't assign to constant")
530 return name
531
532 def eval(self, model):
533 return hy_eval(

Callers 6

compile_assignFunction · 0.80
compile_patternFunction · 0.80
compile_try_expressionFunction · 0.80
compile_function_defFunction · 0.80
compile_arguments_setFunction · 0.80
compile_class_expressionFunction · 0.80

Calls 1

_syntax_errorMethod · 0.95

Tested by

no test coverage detected