Hy fork
Go to file
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
bin Make hy2py public. 2014-04-30 01:51:21 +03:00
docs Allow 'for' and 'cond' to take a multi-expression body (closes #868) 2015-08-10 10:14:55 +02:00
eg purged null from Hy 2015-08-11 16:22:13 -06:00
hy Allow defclass to have properties/method with built-in names 2015-08-12 08:49:24 +02:00
scripts remove defun in favor of defn 2015-08-09 01:09:52 -06:00
tests Allow defclass to have properties/method with built-in names 2015-08-12 08:49:24 +02:00
.coveragerc Adding support for coverage tests at coveralls 2013-12-03 01:58:35 +05:30
.dockerignore Add initial .dockerignore file 2014-10-06 13:37:51 -06:00
.gitignore .gitignore: Ignore .noseids too 2015-08-10 10:31:45 +02:00
.mailmap added new mail 2014-09-08 14:56:04 +02:00
.travis.yml Remove 2.6 entirely from test runners 2015-07-22 12:37:31 -04:00
AUTHORS Add Matthew Egan Odendahl to AUTHORS 2015-08-05 21:43:51 -06:00
CONTRIBUTING.rst Adopt a Code of Conduct 2015-06-23 14:28:56 +02:00
Dockerfile update my email 2014-11-22 10:28:31 -05:00
LICENSE Removing my name from the license. 2013-04-05 20:04:36 -04:00
make.bat Implement yield-from in Python 2.x as a macro 2014-11-20 20:48:15 -06:00
Makefile travis: run in container infra & remove pypy hacks 2015-02-26 11:29:11 +05:30
NEWS preliminary draft of NEWS for 0.10.2 2015-05-03 10:19:25 -07:00
README.md Fix markup slightly. 2015-06-23 08:33:42 -04:00
requirements-dev.txt Make ci builds faster by splitting requirements 2014-05-13 22:47:19 +05:30
requirements-travis.txt Add a Botsbuildbots function 2014-09-05 12:37:51 +02:00
setup.cfg Add universal Wheel support. 2014-03-18 10:33:10 +02:00
setup.py bump astor dependency to 0.5 to support matrix multiplication operator 2015-04-19 20:24:25 -07:00
tox.ini Remove 2.6 entirely from test runners 2015-07-22 12:37:31 -04:00

Hy

Build Status Downloads Version Coverage Status

XKCD #224

Lisp and Python should love each other. Let's make it happen. Try it.

Hylarious Hacks

OK, so, why?

Well. Python is awesome. So awesome, that we have so many tools to alter the language in a core way, but we never use them.

Why?

Well, I wrote Hy to help people realize one thing about Python:

It's really awesome.

Oh, and lisps are neat.

Cuddles the Hacker

(fan art from the one and only doctormo)

Project