87a5b117a1
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`. |
||
---|---|---|
.. | ||
contrib | ||
extra | ||
__init__.py | ||
comprehensions.hy | ||
core.hy | ||
defclass.hy | ||
language.hy | ||
mangling.hy | ||
mathematics.hy | ||
model_patterns.hy | ||
native_macros.hy | ||
operators.hy | ||
py3_only_tests.hy | ||
py35_only_tests.hy | ||
py36_only_tests.hy | ||
quote.hy | ||
tag_macros.hy | ||
unless.hy | ||
when.hy | ||
with_decorator.hy | ||
with_test.hy |