gilch
7d8ddd9ecb
remove lisp-if / lisp-if-not in favor of lif / lif-not
2015-08-09 01:21:12 -06:00
gilch
4cdfdfbafe
remove defun in favor of defn
2015-08-09 01:09:52 -06:00
gilch
33e0b4b3db
remove progn in favor of do
2015-08-09 01:00:51 -06:00
gilch
66c1f38fcc
remove catch in favor of except
2015-08-09 00:53:10 -06:00
gilch
e8d26f1067
remove throw in favor of raise
2015-08-09 00:52:42 -06:00
Berker Peksag
2963ce6121
Tweak partition link.
2015-08-06 07:10:39 +03:00
Berker Peksag
a01957aef2
Merge pull request #877 from gilch/partition
...
Partition
2015-08-06 07:08:04 +03:00
gilch
7986b319c1
Add Matthew Egan Odendahl to AUTHORS
2015-08-05 21:43:51 -06:00
gilch
bb00e709ee
add partition form to core
...
the 2 argument version of Clojure's partition.
pre-expand ->> macro in partition
Docstring for partition.
add test-partition
Document partition.
2015-08-05 21:38:11 -06:00
Gergely Nagy
79de62d2b3
Merge branch 'glc/sliceovershadow'
...
Closes #652 .
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2015-08-05 13:30:24 +02:00
Gergely Nagy
4df5587738
Fix up the rest of the code that still uses slice
...
Since slice was renamed to cut, update some newly introduced functions
and macros that were using slice, to use cut instead.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2015-08-05 13:29:13 +02:00
Calem Bendell
12db748c97
corrected slice to cut in docs
...
corrected slice to cut in the documentation.
also corrected a line in parse tumblr that used slice
2015-08-05 13:21:37 +02:00
Calem Bendell
61e4b9dfed
replace slice
with cut
2015-08-05 13:17:24 +02:00
Berker Peksag
9fbd21adba
Merge pull request #678 from algernon/f/botsbuildbots-contrib-move
...
remove botsbuildbots
2015-08-04 13:16:54 +03:00
Gergely Nagy
7db0fcdafb
Move Botsbuildbots to contrib
...
Closes #678 .
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2015-08-04 11:59:10 +02:00
Morten Linderud
b38ec6b92d
Merge pull request #863 from farhaven/read-str
...
Add read-str
2015-07-31 23:58:16 +02:00
Morten Linderud
b6c3289bbe
Merge pull request #824 from kirbyfan64/short-circuit
...
Make and/or short-circuit
2015-07-31 23:57:25 +02:00
Gregor Best
3f0aaf591b
Remove failing test for now
2015-07-30 16:07:25 +02:00
Gregor Best
98704ddd1a
fix typo
2015-07-30 16:07:25 +02:00
Gregor Best
0146cc8e4d
Add docs for read-str
2015-07-30 16:07:25 +02:00
Gregor Best
2d7134a1be
Add (read-str)
2015-07-30 16:07:25 +02:00
Zack M. Davis
557571cc71
merge branch 'div'
2015-07-29 21:31:56 -07:00
Ryan Gonzalez
016d25d104
Add one-argument division and rationals ( closes #825 and #826 )
2015-07-29 13:30:24 -05:00
Zack M. Davis
f1c315da24
merge branch 'lex-exception'
2015-07-28 21:29:08 -07:00
Zack M. Davis
1297cce4e2
merge branch 'eval-param-types'
2015-07-28 21:18:02 -07:00
Gregor Best
48e654596d
Type check eval
parameters
2015-07-28 16:49:22 +02:00
Gregor Best
0ba620fc73
Explicitly set missing source on LexExceptions
...
This fixes the following code:
(import [hy.lex [tokenize]])
(tokenize "(foo))")
2015-07-28 16:46:26 +02:00
Zack M. Davis
016557deab
reader macro #@ for with-decorator
...
The `with-decorator` special form is not the most ergonomic—this commit
introduces a new builtin `#@` reader macro that expands to an invocation
of `with-decorator`. To support this, `reader_macroexpand` is made to
also look in the default `None` namespace, in imitation of how
regular (non-reader) macros defined in hy.core are looked up. The
docstring of `hy.macros.reader` is also edited slightly for accuracy.
This in the matter of issue #856 .
2015-07-26 15:05:38 -07:00
Zack M. Davis
f247056360
merge branch 'setv-pair'
2015-07-26 01:04:07 -07:00
Ryan Gonzalez
e54d4becec
Add zero- and one-argument versions of 'and' and 'or' (ref. #835 )
2015-07-25 18:44:23 -05:00
Ryan Gonzalez
95cef09c6a
Make 'and' and 'or' short-circuit (ref. #233 , closes #766 )
2015-07-25 18:44:16 -05:00
Ryan Gonzalez
736d7a7991
Let setv take pairs of arguments (ref. #844 )
2015-07-25 17:45:34 -05:00
Morten Linderud
d95bfbaa8e
Merge pull request #845 from farhaven/flow-doc
...
Rework `flow' module doc
2015-07-24 09:55:29 +02:00
Gregor Best
4fe67c11a4
Rework `flow' module doc
...
- Reworded intro a bit
- Cleaned up white space
- Reworded examples
2015-07-24 09:52:33 +02:00
Gergely Nagy
4642625378
Merge pull request #788 from nicolas-p/ap-pipe-ap-compose
...
Added ap-pipe and ap-compose macros
2015-07-23 15:08:18 +02:00
Morten Linderud
73a29fd377
Merge pull request #781 from zackmdavis/kwonly_connect
...
keyword-only arguments
2015-07-23 14:12:35 +02:00
Morten Linderud
4ee308c5f2
Merge pull request #761 from larme/fix-replace-hyobject
...
Add 'replace_hy_obj' to safely replace Hy objects
2015-07-23 14:09:56 +02:00
Morten Linderud
e228245690
Merge pull request #760 from Tritlo/flow
...
Added flow macros
2015-07-23 14:08:46 +02:00
Zack M. Davis
8a03e922c1
AST test coverage for &kwonly; cant_compile
returns exception object
...
Much like how `can_compile` returns the compilation result, which some
tests make use of, it may be useful for for `cant_compile` to return the
exception object that it caught, for more specific assertions.
2015-07-22 22:06:51 -07:00
Zack M. Davis
4b00a84f9f
documentation for &kwonly
2015-07-22 22:06:51 -07:00
Zack M. Davis
ef079d5e08
implement keyword-only arguments
...
Python 3 supports keyword-only arguments as described in the immortal
PEP 3102. This commit implements keyword-only argument support for Hy
using a `&kwonly` lambda-list-keyword with semantics analogous how
`&optional` arguments are handled: `&kwonly` arguments are either a
symbol, in which case the keyword argument so named is mandatory, or a
two-element list, the first of which is the symbolic name of the keyword
argument and the second of which is its default value if not
supplied. If Hy is running under Python 2, attempting to use `&kwonly`
args will raise a HyTypeError.
This effort is with the aim of resolving #453 .
2015-07-22 21:53:06 -07:00
Zack M. Davis
d8abfb3653
merge branch 'additional_unpacking_correctness'
2015-07-22 21:26:38 -07:00
Zhao Shenyang
e2f48e5cde
fix a stupid typo
2015-07-23 10:25:32 +08:00
Zhao Shenyang
e2c1d45f21
Make error messages clearer
2015-07-23 10:22:12 +08:00
Paul Tagliamonte
2258bcc2d7
Merge branch 'master' into pr/823
2015-07-22 12:55:27 -04:00
Morten Linderud
d10b1d17cc
Merge pull request #843 from paultag/paultag/bugfix/die-python-26-die
...
Remove 2.6 entirely from test runners
2015-07-22 18:52:44 +02:00
Paul Tagliamonte
1312167fb1
Remove 2.6 entirely from test runners
...
(But not codepaths, in case someone cares)
2015-07-22 12:37:31 -04:00
Gergely Nagy
adc1cf8829
contrib.walk: Coerce non-list iterables into list form
...
Expressions can sometimes contain itertools.islice objects, which we can
only walk if we force them into a list. To do this, the walk function
has to be taught that collections that are not instances of list should
be forced into a list.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2015-07-15 16:59:49 +02:00
Berker Peksag
144ee3b2f0
Merge branch 'pr/829'
2015-07-15 00:00:01 +03:00
Ryan Gonzalez
c94c0e8b50
Add set literals ( closes #827 )
2015-07-14 23:59:29 +03:00