Kodi Arfer
ddded5e8bd
PEP8 fixes in compiler
2017-09-13 13:30:59 -07:00
Kodi Arfer
deb801edab
Preserve .brackets in quoted HyStrings
2017-09-08 11:27:34 -07:00
Kodi Arfer
eb23ddc1e2
Add #[DELIM[ … ]DELIM] syntax for string literals
2017-09-08 11:27:34 -07:00
gilch
2d8a318e0c
color compound hy model reprs
2017-09-07 11:50:22 -07:00
gilch
021204af13
make HyCons __repr__ iterative
2017-09-07 11:50:22 -07:00
gilch
860431b2a5
make HyCons repr indented and multi-line
2017-09-07 11:50:22 -07:00
gilch
7674bf3267
proper reprs for Hy models
2017-09-07 11:50:16 -07:00
gilch
20516cce79
make native tests run on Windows too
2017-09-05 13:35:28 -06:00
Ryan Gonzalez
c69f8ebb79
Merge pull request #1404 from Kodiologist/unicode_literals
...
Simplify string parsing with `unicode_literals`
2017-08-29 18:22:02 -05:00
Kodi Arfer
e3e7fa8ce6
Catch exceptions raised by HyREPL.output_fn
2017-08-29 14:54:26 -07:00
Kodi Arfer
98fb33d0a3
Simplify string parsing with unicode_literals
...
I switched from `ast.literal_eval` back to `eval` because the former doesn't respect `unicode_literals`.
2017-08-28 10:28:19 -07:00
Kodi Arfer
0fc96306bc
Drop support for Python 3.3
2017-08-26 13:36:51 -07:00
Kodi Arfer
7ed31a18f3
Forbid arguments to break
and continue
2017-08-26 11:37:15 -07:00
Kodi Arfer
2bbf886ceb
Make assoc
a macro instead of a special form
...
The new macro evaluates its lvalue only once.
2017-08-25 11:41:28 -07:00
Ryan Gonzalez
dea99c8b76
Merge pull request #1354 from gilch/comment-discard
...
add #_ discard syntax
2017-08-19 11:29:57 -05:00
Kodi Arfer
8d40a68232
Initialize the return variable of with
2017-08-19 07:35:41 -07:00
Kodi Arfer
2ef9bc75d4
Clean up with
2017-08-19 07:25:00 -07:00
Kodi Arfer
21ea36f277
Add return
as a special form
2017-08-11 13:56:44 -07:00
Kodi Arfer
cca8beea44
Fix the grammar of an error message
2017-08-11 10:49:32 -07:00
David Schaefer
969fa8d533
Fixes #1350 : try form in defmacro
2017-08-11 01:21:01 +02:00
David Schaefer
274f5e9002
Fix copy behaviour of HyComplex
2017-08-09 23:30:16 +02:00
Andrew Silva
c4f183f97c
Added docomplete truth check on hy/completer.py:27
...
Without the check, the next line will reference readline even if the
library was not successfully loaded.
2017-08-07 13:25:58 -04:00
Jordan Danford
c67b8bccb9
Expose read
, read_str
, and eval
in Python
...
- Expose `read`, `read_str`, and `eval` in Python
- Add string evaluation example to interop section of docs
- Add test for `eval`
- Explain `eof` keyword argument in `read` docstring
2017-08-05 17:29:15 -07:00
David Schaefer
432d560310
No TypeError from multi-arity defn returning None
2017-08-04 17:08:41 +02:00
gilch
d0530b0e7e
add comment macro
2017-08-03 19:05:38 -06:00
Kodi Arfer
e8ffd41202
Merge pull request #1349 from woodrush/fix-unquote-splice-none
...
Allow `unquote-splice` to accept any false value as empty
2017-08-02 19:50:47 -04:00
gilch
203965d0fa
add #_ discard syntax
2017-08-02 16:55:14 -06:00
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
Hikaru Ikuta
a0224ef8bd
Allow unquote-splice
to accept any false value as empty
2017-08-02 00:50:37 +09: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
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
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
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
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
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
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
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