hy/tests/compilers
Gergely Nagy b92049d119 Allow defclass to have properties/method with built-in names
To allow classes to have methods that match built-in names, yet, still
disallow them outside of defclass, keep an internal state whether
builtins are allowed in the current context.

By default, this is false. But defclass will set it to True when it
compiles its body, and set it back to the previous value when it's done
with that. We need to set back to the previous value to allow nested
defclasses to work properly.

This closes #783.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2015-08-12 08:49:24 +02:00
..
native Remove the import-as and import-from builtins 2013-04-20 16:06:32 +02:00
__init__.py Adding more testing. 2013-03-02 23:47:16 -05:00
test_ast.py Allow defclass to have properties/method with built-in names 2015-08-12 08:49:24 +02:00
test_compiler.py move imports and operators to satisfy new version of pep8 checker 2015-02-16 22:21:49 -08:00
test_quoting.py Adding some basic testing in; more to come. 2013-04-08 20:23:51 -04:00