Kodi Arfer
ecc974de1e
Implement Python 2 exec
...
The implementation of `hy.core.language.exec` draws code from the `exec_` function in commit f574c7be6ebc80041ef58ca29588f310248ebed4 of the library Six, which is copyright 2010–2017 Benjamin Peterson and licensed under the Expat license.
2017-08-02 13:33:59 -04:00
Tuukka Turto
3dcf91ab39
Merge pull request #1345 from Kodiologist/cond-in-core-macro-def
...
Don't use `cond` in the definition of a core macro
2017-08-02 18:45:17 +03:00
Kodi Arfer
2d20a52379
Don't use cond
in the definition of a core macro
...
`cond` itself is a core macro.
2017-07-28 16:58:45 -07:00
gilch
d9a5acbcc9
Merge pull request #1343 from Kodiologist/repl-history-after-exception
...
Save REPL history after an exception
2017-07-26 22:39:30 -06:00
Kodi Arfer
67a4815024
Shadow get
( #1344 )
2017-07-26 21:10:54 -05:00
Kodi Arfer
2f340f8049
Save REPL history after an exception
2017-07-26 14:26:45 -07:00
gilch
0a14410911
Merge pull request #1337 from Kodiologist/shetag
...
Don't try to lex tag-macro calls as shebangs
2017-07-25 12:43:53 -06:00
Ryan Gonzalez
260fbcc517
Merge pull request #1329 from Kodiologist/quickfix
...
Two small bugfixes
2017-07-23 21:23:54 -05:00
Kodi Arfer
28ce83524b
Don't try to lex tag-macro calls as shebangs
2017-07-23 11:43:19 -07:00
Kodi Arfer
eea8cf1061
hy-repr: Fix a crash when given a NumPy array
2017-07-20 08:46:42 -07:00
Kodi Arfer
7b94c45e16
Remove an extra parenthesis in hy.contrib.profile
2017-07-20 08:46:37 -07:00
Ryan Gonzalez
35f7dd36bb
Merge pull request #1325 from Kodiologist/unpacking
...
Replace `apply` with unpacking operators
2017-07-20 09:49:17 -05:00
Kodi Arfer
3f3cce8785
Update docs: apply
is gone; #* and #** are in
2017-07-19 11:00:43 -07:00
Kodi Arfer
0bbb5f8e34
hy-repr: Support #* and #**
2017-07-19 10:25:24 -07:00
Kodi Arfer
784a44601b
Remove the implementation of apply
2017-07-19 10:18:55 -07:00
Kodi Arfer
97ecb0b553
Remove apply
from tests
2017-07-17 13:34:42 -07:00
Kodi Arfer
75e4ad8304
Remove uses of apply
from /hy
2017-07-17 13:34:42 -07:00
Kodi Arfer
2d863abc85
Implement #* and #** unpacking
2017-07-17 13:34:39 -07:00
Tuukka Turto
c3c7af2db3
Merge pull request #1312 from Kodiologist/remove-py2-yield-from
...
Remove the Python 2 yield-from macro
2017-07-13 18:56:51 +03:00
Kodi Arfer
801836f6c2
Remove the Python 2 yield-from macro
...
I moved the yield-from tests from native_macros to py3_only_tests.
2017-07-13 08:46:41 -07:00
Kodi Arfer
a979dd85f7
Don't make yield-from
a special form on Python 2
2017-07-13 08:46:41 -07:00
gilch
7d8ffc0181
Merge pull request #1322 from kirbyfan64/new-rply
...
Update rply to 0.7.5
2017-07-12 17:51:44 -06:00
Kodi Arfer
33052f4180
Test compiling a lot of comment lines
2017-07-12 14:07:42 -07:00
Ryan Gonzalez
292f445a0a
Update rply to 0.7.5
...
Closes #1313 . Ref. alex/rply#52 , alex/rply#71 .
2017-07-12 15:53:07 -05:00
Tuukka Turto
678998f00c
Merge pull request #1321 from Kodiologist/no-str-as-sym
...
Require HySymbols instead of HyStrings in more cases
2017-07-12 22:11:36 +03:00
Ryan Gonzalez
467b300e6c
Remove an outdated comment
2017-07-12 13:56:17 -05:00
Kodi Arfer
b7657e8fa3
Require HySymbols instead of HyStrings more often
2017-07-12 10:57:35 -07:00
Kodi Arfer
5610d7dedf
Merge pull request #1294 from Kodiologist/nan-and-inf
...
Require capitalizing NaN and Inf like so
2017-07-10 08:54:38 -07:00
Kodi Arfer
5a1e6a7c6a
hy-repr: Support NaN and Inf
2017-07-10 08:50:49 -07:00
Kodi Arfer
bb91b57dca
Require capitalizing NaN and Inf like so
2017-07-10 08:50:49 -07:00
Kodi Arfer
a746ccb42c
Refactor test_lex_expression_complex
2017-07-10 08:50:45 -07:00
Tuukka Turto
7c53a07b93
Merge pull request #1314 from Kodiologist/compiler-autobox
...
Auto-promote values to HyObjects in the compiler
2017-07-10 09:04:08 +03:00
Kodi Arfer
850ba03d1f
Slightly simplify HyREPL
2017-07-03 17:01:12 -07:00
Kodi Arfer
6db3da779e
Don't wrap values while expanding macros
...
This is the compiler's job now.
2017-07-03 17:01:12 -07:00
Kodi Arfer
55986b2033
Auto-promote values to HyObjects in the compiler
2017-07-03 17:01:12 -07:00
Kodi Arfer
4be37b358b
Make lists no longer magical for the compiler
2017-07-03 17:01:12 -07:00
Kodi Arfer
f55fcf43bd
Add a docstring for hy-eval
...
It's just a copy of the documentation for hy.core.langauge.eval.
2017-07-03 17:01:12 -07:00
Kodi Arfer
ca95194240
Change eval
from a special form to a function
2017-06-27 08:14:29 -06:00
gilch
2e465dbf70
Merge pull request #1309 from Kodiologist/pythondontwritebytecode
...
Support PYTHONDONTWRITEBYTECODE
2017-06-26 19:46:36 -06:00
Kodi Arfer
f2278cf2f0
Support PYTHONDONTWRITEBYTECODE
2017-06-26 19:00:08 -06:00
Kodi Arfer
399e7628b4
Parametrize test_bin_hy_byte_compile
2017-06-26 18:58:51 -06:00
gilch
672c8a1637
Merge pull request #1307 from hylang/windows-tests
...
Use universal newlines in test_bin.py
2017-06-26 14:27:16 -06:00
Kodi Arfer
a62faf7b8a
Merge pull request #1296 from Kodiologist/literal-attr
...
Don't parse 5.attr or :foo.attr as symbols
2017-06-23 08:42:20 -07:00
Kodi Arfer
26d1b3f72e
Don't parse 5.attr or :foo.attr as symbols
2017-06-23 08:30:37 -07:00
Kodi Arfer
c8736ebd0c
Use pytest.raises in test_lex
2017-06-23 08:29:55 -07:00
Ryan Gonzalez
e92ef484a0
Merge pull request #1310 from gilch/tagged-literals
...
Tag macros
2017-06-23 10:13:43 -05:00
gilch
b7a0c2abf0
add tag macro tests
2017-06-22 22:49:00 -06:00
gilch
901cfbda13
add tag macros to NEWS
2017-06-22 22:49:00 -06:00
gilch
6cd3201421
rename sharp macros to tag macros
2017-06-22 22:48:46 -06:00
gilch
20c26a52e4
make sharp macros take arbitrary identifiers
...
Previously, only a single character was allowed.
2017-06-22 22:46:24 -06:00