Hy fork
Go to file
Bob Tolbert bd661a3ae8 Fix hy2py output on Windows/Python 3
If there are Unicode symbols in the hy2py output (as in
tests/native_test/language.hy) and the user is on Windows, and
the user is using Python3 and the user doesn't have an appropriate
codepage in the terminal for Unicode, then hy2py will fail at
encoding the output.

This fix makes sure that if encoding fails, the bytes output is shown
instead of throwing an exception and failing completely.  This also
allows the hy2py tests to pass on Windows.

If the user does activate an appropriate codepage, for example,

chcp 65001

then the Unicode output will show correctly.

Converted printing code to small function to eliminate some duplicate code
2014-06-23 14:51:02 -06:00
bin Make hy2py public. 2014-04-30 01:51:21 +03:00
docs docs: fix decorator to reflect multiple decorators 2014-05-24 17:35:39 +05:30
eg the mega typo fix commit 2014-05-05 23:47:14 +05:30
hy Fix hy2py output on Windows/Python 3 2014-06-23 14:51:02 -06:00
scripts Port update_coreteam.py to Hy. 2014-01-31 03:43:03 +02:00
tests Merge pull request #601 from theanalyst/fix/ap-first 2014-06-23 15:32:29 -04:00
.coveragerc Adding support for coverage tests at coveralls 2013-12-03 01:58:35 +05:30
.gitignore Provide bin scripts for both Windows and *nix 2013-07-14 09:06:42 -06:00
.travis.yml Make ci builds faster by splitting requirements 2014-05-13 22:47:19 +05:30
AUTHORS setv no longer creates variables with '.' in their names 2014-04-29 09:22:55 -05:00
CONTRIBUTING.rst the mega typo fix commit 2014-05-05 23:47:14 +05:30
Dockerfile Add dockerfile. 2014-05-04 17:28:08 -04:00
LICENSE Removing my name from the license. 2013-04-05 20:04:36 -04:00
make.bat Merge pull request #530 from rwtolbert/rwtolbert/bugfix/hy2py_test_windows 2014-03-15 03:54:10 +02:00
Makefile Enabling hy2py test on Windows 2014-03-14 10:21:07 -04:00
NEWS the mega typo fix commit 2014-05-05 23:47:14 +05:30
README.md the mega typo fix commit 2014-05-05 23:47:14 +05:30
requirements-dev.txt Make ci builds faster by splitting requirements 2014-05-13 22:47:19 +05:30
requirements-travis.txt Make ci builds faster by splitting requirements 2014-05-13 22:47:19 +05:30
setup.cfg Add universal Wheel support. 2014-03-18 10:33:10 +02:00
setup.py Make hy2py public. 2014-04-30 01:51:21 +03:00
tox.ini Cleanup requirements, .travis.yml and tox.ini. 2014-04-20 00:46:26 +03:00

Hy

Build Status Downloads version Coverage Status

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

Hylarious Hacks

Django + Lisp

Python sh fun

Hy IRC bot

miniKanren in Hy

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.

(fan art from the one and only doctormo)

Project