hy/docs/contrib
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
..
hy_repr.rst NEWS and docs for hy-repr 2018-03-10 18:11:07 -08:00
index.rst Add hy.contrib.hy-repr 2017-03-24 08:43:53 -07:00
loop.rst Give `require` the same features as `import` (#1142) 2016-11-03 09:35:58 +02:00
multi.rst Remove mixtures of tabs and spaces 2018-05-15 23:29:07 -04:00
profile.rst Remove mixtures of tabs and spaces 2018-05-15 23:29:07 -04:00
sequences.rst Fix typos and improve code examples 2018-05-16 18:25:53 -04:00
walk.rst Implement new importer using PEP-302 semantics 2018-08-25 22:50:38 -05:00