Brandon T. Willard 87a5b117a1 Implement new importer using PEP-302 semantics
Python 3.x is patched in a way that integrates `.hy` source files into
Pythons default `importlib` machinery.  In Python 2.7, a PEP-302 "importer"
and "loader" is implemented according to the standard `import` logic (via
`pkgutil` and later pure-Python `imp` package code).

In both cases, the entry-point for the loaders is through `sys.path_hooks` only.
As well, the import semantics have been updated all throughout to utilize
`importlib` and follow aspects of PEP-420.  This, along with some light
patches, should allow for basic use of `runpy`, `py_compile` and `reload`.

In all cases, if a `.hy` file is shadowed by a `.py`, Hy will silently use
`.hy`.
2018-08-25 22:50:38 -05:00
2014-04-30 01:51:21 +03:00
2014-10-06 13:37:51 -06:00
2014-09-08 14:56:04 +02:00
2018-07-21 11:20:10 -07:00
2014-11-22 10:28:31 -05:00
2018-08-18 18:05:40 -04:00
2018-01-01 10:38:33 -05:00
2017-04-26 14:00:11 -07:00
2018-02-13 15:31:52 -08:00
2018-08-08 09:26:20 -04:00
2018-03-06 11:50:17 -08:00
2018-08-18 18:05:40 -04:00
2018-02-14 16:05:31 -05:00

Hy

Build Status Version

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

Description
Hy fork
Readme 6.1 MiB
Languages
Python 50.7%
Hy 41.5%
reStructuredText 7.1%
Batchfile 0.4%
Makefile 0.3%