Commit Graph

1981 Commits

Author SHA1 Message Date
Kodi Arfer
36507b0678 Merge pull request #1194 from swhalen/shadow-ops-and
Use `and` in hy.core.shadow.comp_op
2017-02-03 16:34:33 -08:00
Kodi Arfer
d517378eba Update NEWS 2017-02-03 15:48:57 -08:00
Kodi Arfer
1abf293793 Test the use of and in shadowed chained comparisons 2017-02-03 15:43:00 -08:00
Simon Whalen
b89d142e95 Use and in hy.core.shadow.comp_op
Makes shadow operator behavior match normal (Python) operator behavior
when said operators are used in chained comparisons.

Resolves #1191
2017-02-03 15:22:19 -08:00
Kodi Arfer
7b52530adf CONTRIBUTING.rst: Add NEWS items for your PRs 2017-02-03 22:25:38 +02:00
Kodi Arfer
9ca7f49c88 Make xor return single true inputs
The documentation should now be correct (#1214).
2017-02-03 22:25:38 +02:00
Paul Tagliamonte
7a4a2ca668 Merge pull request #1209 from Kodiologist/fix-1205
Fix 1205
2017-01-24 13:40:42 -05:00
Kodi Arfer
fe0fb6fba1 Use try instead of if in setup.py 2017-01-24 08:31:38 -08:00
Kodi Arfer
6e7e94dd8e Tweak __version__ handling in setup.py 2017-01-20 13:34:15 -08:00
Paul Tagliamonte
1fc3507115 Merge pull request #1204 from Kodiologist/eval-str
Docs: add an example of evaluating a string
2017-01-19 12:31:01 -05:00
Kodi Arfer
2dd1432b07 Docs: add an example of evaluating a string 2017-01-19 09:26:12 -08:00
Tuukka Turto
dda456ddd9 Release 0.12.0 preparation (#1140)
* Release 0.12.0 preparation

* Update news

* Update news

* Update news

* Update news to contain version info change

* Add require change into news

* Update in respect of true, false and nil

* add multimethod change

* add lazy sequences

* add hy.core.reserved

* add #1160 - hy2py can use standard input

* added defmacro!

* add comp, constantly and complement

* add juxt

* contrib clean up

* Allow keyword args in method calls before the obj
2017-01-17 15:43:02 -06:00
Tuukka Turto
fe8209bf03 Include hy.extra in packaging (#1201)
closes #1200
2017-01-17 12:46:58 -06:00
Kodi Arfer
5df8f38d75 Merge branch 'itertools-docs' 2017-01-04 15:14:04 -08:00
Kodi Arfer
c8171bc0c5 Itertools docs edits 2017-01-04 15:11:54 -08:00
gilch
b9106de1ab list all itertools 2017-01-04 13:04:41 -07:00
Kodi Arfer
ed930edefe Allow keyword args in method calls before the obj (#1167)
Unlike Python, Hy allows the programmer to intermingle positional and keyword arguments. This change removes an exception to that rule for method calls, in which the method callee always had to be the first thing after the method. Thus, `(.split :sep "o" "foo")` now compiles to `"foo".split(sep="o")` instead of `HyKeyword("sep").split("o", "foo")`.
2017-01-03 00:24:55 -07:00
Jakub Wilk
7aaf5f5330 Fix invalid escape sequences
Fixes:

    hy/cmdline.py:175: DeprecationWarning: invalid escape sequence \_
    tests/lex/test_lex.py:267: DeprecationWarning: invalid escape sequence \s
    tests/compilers/test_compiler.py:45: DeprecationWarning: invalid escape sequence \*

when run against Python 3.6 with warnings enabled.
2017-01-01 00:20:04 +03:00
Kodi Arfer
99b0bd0424 Remove @rwtolbert from core team
Closes #1197.
2016-12-31 11:05:53 -08:00
Kodi Arfer
9449584c7f Merge branch 'contrib-cleanup' 2016-12-30 08:06:59 -08:00
Kodi Arfer
91b26d1fdd Remove contrib.meth
This seems to be specific to Flask, a web framework.
2016-12-29 08:35:54 -08:00
Kodi Arfer
407a79591a Remove contrib.flow
It's not tested, and sure enough, a glance at the code suggests that `case` and `switch` will evaluate their first argument once for every clause, which is unlikely to be desirable. I say remove it, but if anybody wants to fix and test and re-add `case` (and change it to a square-bracket syntax like `cond`), be my guest.
2016-12-29 08:35:54 -08:00
Kodi Arfer
38d11bd455 Translate MultiDispatch from Python to Hy
Now we can put it into contrib.multi instead of its own module.
2016-12-29 08:35:54 -08:00
Kodi Arfer
85b4160637 Remove contrib.curry
It's undocumented and of dubious value.
2016-12-29 08:35:54 -08:00
Kodi Arfer
e5c6f733a4 Remove tests for contrib.botsbuildbots
This is an Easter egg whose tests add a dependency (requests) and cause a test failure if you don't have an active Internet connection.
2016-12-29 08:35:54 -08:00
Kodi Arfer
8eceb4fe9d Move contrib.anaphoric to contrib.extra 2016-12-29 08:35:41 -08:00
Kodi Arfer
bc4d67891d Merge pull request #1190 from pyx/docstring
Improve integer? and juxt docstrings
2016-12-27 09:05:48 -08:00
Kodi Arfer
397fa80380 Revert "Modernized." (#1085) (#1188)
This reverts commit 13b484ce46 and fixes #1183.
2016-12-27 09:09:58 -06:00
Philip Xu
35a187ba2e Update AUTHORS 2016-12-27 02:50:41 -05:00
Philip Xu
bacfa5d9eb Upgrade juxt docstring to match documentation 2016-12-27 02:45:09 -05:00
Philip Xu
c9b40037d5 Fix typo 2016-12-27 02:41:16 -05:00
Kodi Arfer
670c5ae7e5 Add hy.extra 2016-12-26 15:39:26 -08:00
Kodi Arfer
d980a4a8ee Remove contrib.alias
I don't see why you'd put this in the standard library. I guess it could be useful for when you're maintaining a library and you want to change the name of a function or macro but keep the old name around for a while so people's code doesn't break immediately. But that's a pretty limited purpose.
2016-12-26 15:39:26 -08:00
Kodi Arfer
7755778123 Merge branch 'juxt' 2016-12-26 13:28:56 -08:00
Kodi Arfer
0c4d416a37 juxt documentation edits 2016-12-26 13:26:44 -08:00
Philip Xu
7dfb9602f8 Add juxt documentation 2016-12-25 17:02:51 -05:00
Philip Xu
24359336f7 Remove trailing whitespace 2016-12-25 16:59:41 -05:00
Philip Xu
eb8fe0b085 Add test for juxt 2016-12-25 16:57:50 -05:00
Philip Xu
f8a5c151f8 Remove trailing space 2016-12-25 16:56:24 -05:00
Philip Xu
2e87284987 Add juxt 2016-12-25 16:54:53 -05:00
jakirkham
369b994c74 Add the manifest. (#1186) 2016-12-25 14:17:32 -06:00
Tuukka Turto
71f30e845d Add comp, constantly and complement (#1179)
* Add comp, constantly and complement

relates #1176

* Fix composition order in comp

* comp without parameters returns identity

* Doc edits for comp, complement, constantly

* Test that `(comp)` returns `identity` exactly

* Simplify the `reduce` call in `comp`

* updated version of comp
2016-12-25 13:11:25 -07:00
accraze
0379fa1b36 added itertools docs
fixes #954
2016-12-22 16:20:30 -08:00
Kodi Arfer
ca6fd66606 Merge branch 'empty-kw-tests' 2016-12-21 10:26:43 -08:00
Kodi Arfer
a4158c5543 Add tests for the empty keyword
I have some macros for using pandas and NumPy that expect : to be a keyword instead of an ordinary symbol. These tests will ensure that we don't break this unless we want to.
2016-12-21 10:19:42 -08:00
Elf M. Sternberg
13b484ce46 Modernized. 2016-12-20 10:54:11 +02:00
Kodi Arfer
21f9589291 Remove /eg (#1180)
This code is untested and largely hasn't been updated for changes to Hy.

Partly addresses #1162.
2016-12-20 10:13:04 +02:00
Kodi Arfer
944d61eaf3 Merge pull request #1178 from accraze/profile-doc
Added contrib.profile docs
2016-12-19 14:47:37 -08:00
Kodi Arfer
664ded1a19 profile docs wording edit 2016-12-19 14:44:16 -08:00
accraze
115b7dd5fa Added contrib.profile docs
fixes #1145
2016-12-18 21:10:24 -08:00