Commit Graph

2237 Commits

Author SHA1 Message Date
Kodi Arfer
02881cf813 Test PyPy3 on Travis 2017-08-26 21:57:43 -07:00
Kodi Arfer
55a8e8e452 Require a sufficiently recent version of pytest 2017-08-26 21:57:43 -07:00
gilch
1dff8811df Merge pull request #1401 from Kodiologist/no-py3.3
Drop support for Python 3.3
2017-08-26 16:00:10 -06:00
Kodi Arfer
0fc96306bc Drop support for Python 3.3 2017-08-26 13:36:51 -07:00
Ryan Gonzalez
98645aa9b2 Merge pull request #1400 from Kodiologist/nullary-break-continue
Forbid arguments to `break` and `continue`
2017-08-26 15:18:36 -05:00
Kodi Arfer
7ed31a18f3 Forbid arguments to break and continue 2017-08-26 11:37:15 -07:00
Kodi Arfer
d03b1be686 Merge pull request #1388 from Kodiologist/macroexpand-named-import
Un-xfail a passing test of `macroexpand`
2017-08-25 15:34:06 -07:00
Kodi Arfer
8b677bb20c Un-xfail a passing test of macroexpand
It seems that #1374 (1faee7ac39) fixed this bug.
2017-08-25 15:25:06 -07:00
gilch
914e399f69 Merge pull request #1378 from Kodiologist/assoc-as-macro
Make `assoc` a macro instead of a special form
2017-08-25 13:23:45 -06: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
Kodi Arfer
062e24d71f Merge pull request #1387 from Kodiologist/return-docs
Update NEWS and docs for `return`
2017-08-20 12:42:17 -07:00
Kodi Arfer
cebb820b6c Update NEWS and docs for return 2017-08-20 08:45:17 -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
e8d7a6bc37 Merge pull request #1338 from Kodiologist/with-tempvar
Initialize the return variable of `with`
2017-08-19 07:36:17 -07:00
Kodi Arfer
8d40a68232 Initialize the return variable of with 2017-08-19 07:35:41 -07:00
Kodi Arfer
f5ee5f4ee5 Whitespace fix 2017-08-19 07:25:00 -07:00
Kodi Arfer
2ef9bc75d4 Clean up with 2017-08-19 07:25:00 -07:00
Tuukka Turto
b99460b632 Merge pull request #1380 from Kodiologist/return
Add `return` as a special form
2017-08-19 14:08:34 +03: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
Ryan Gonzalez
1faee7ac39 Merge pull request #1374 from schaefed/macrotry
Fixes #1350: try form in defmacro
2017-08-10 22:00:07 -05:00
David Schaefer
969fa8d533 Fixes #1350: try form in defmacro 2017-08-11 01:21:01 +02:00
Ryan Gonzalez
26a4263579 Merge pull request #1377 from schaefed/hycomplex
Fix copy behaviour of HyComplex
2017-08-09 20:56:05 -05:00
David Schaefer
274f5e9002 Fix copy behaviour of HyComplex 2017-08-09 23:30:16 +02:00
Kodi Arfer
7e5d4830eb Merge pull request #1373 from ChefAndy/master
hy/completer.py:27 docomplete truth check
2017-08-07 10:39:17 -07:00
Andrew Silva
1f8c82ae76 Added Andrew Silva to AUTHORS 2017-08-07 13:28:07 -04: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
Kodi Arfer
bb00515ae7 Merge pull request #1368 from Kodiologist/hacking-link
Link to "Hacking on Hy" in the README
2017-08-06 07:39:52 -07:00
Kodi Arfer
9416674ad8 Link to "Hacking on Hy" in the README 2017-08-06 07:39:13 -07:00
Kodi Arfer
d36b5c488b Merge pull request #1369 from jdanford/expose-read-and-eval
Expose `read`, `read_str`, and `eval` in Python
2017-08-06 07:38:16 -07:00
Jordan Danford
8228c4c011 Add Jordan Danford to AUTHORS 2017-08-05 17:29:40 -07: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
gilch
4dd57c84ee NEWS and docs for (comment ...) and #_ 2017-08-04 16:37:39 -06:00
gilch
0f81369deb tests for #_ and (comment ...) 2017-08-04 14:35:11 -06:00
Kodi Arfer
b6dceb0aa3 Merge pull request #1359 from schaefed/master
Fix TypeError when defn multi-arity method returns None
2017-08-04 09:39:30 -07:00
David Schaefer
9056506e30 Updated AUTHORS 2017-08-04 17:14:35 +02: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
4fd1c7bd59 Merge pull request #1301 from Kodiologist/py2-exec
Implement Python 2 `exec`
2017-08-02 13:41:59 -04: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
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
Hikaru Ikuta
c8ce998a3f Add Hikaru Ikuta to AUTHORS 2017-08-02 18:03:31 +09:00
Hikaru Ikuta
dbffe987f5 Update docs on unquote-splice 2017-08-02 18:03:24 +09: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