Commit Graph

93 Commits

Author SHA1 Message Date
Kodi Arfer 48d481b5d3 Fix a check for empty input in `macroexpand`
The equality check hasn't done the right thing since HyExpression became tuple-backed (#1804).
2020-04-03 14:24:48 -04:00
Kodi Arfer 15be7693fd Update NEWS 2020-04-02 08:34:31 -04:00
Joseph Egan f1de9050ea Reduce scope of symbol replacement for anaphoric macros 2020-03-31 11:18:48 -04:00
redraiment 2b40dea54d Fixes #1875: parse-args requires values to be representable as Hy models
* Update argument spec parse logic of parse-args function.
* Update test case of parse-args function.
* Update document of parse-args function.
* Describe the change in NEWS file.
2020-03-31 10:44:26 -04:00
Kodi Arfer b3aabd5564 Update NEWS for release 2020-02-02 08:12:22 -05:00
Kodi Arfer 0e55d7d955 Allow more than two arguments to `in` or `not-in` 2020-01-09 14:04:12 -05:00
Kodi Arfer 170febb2e8 Implement chained comparisons 2020-01-09 14:04:12 -05:00
Kodi Arfer f6b9ba9b8f Fix some bugs in `ap-reduce` 2019-12-15 14:55:31 -05:00
Kodi Arfer 8872f0b44c Remove hy.contrib.multi 2019-11-18 20:06:17 -05:00
Adam Porter 0f3d256ebf Add: parse-args function
Closes #1719.
2019-10-30 10:16:45 -05:00
Kodi Arfer f8d3826689
Merge pull request #1824 from refi64/drop-clint
Drop clint for colors in favor of colorama
2019-10-22 08:59:46 -04:00
Ryan Gonzalez beb21d384c Fix a unit test bug on slim Python Docker images
If HyASTCompiler is given a string, it imports it and uses it as the
execution environment. However, the unit tests gave HyASTCompiler the
string 'test', assuming it would create a new test module, when in
reality it would import CPython's test module that is designed for
internal use. Slim Docker images don't include this module, therefore
the tests would fail to run.
2019-10-13 14:08:07 -05:00
Ryan Gonzalez 0579561b83 Drop clint for colors in favor of colorama
Closes #1820.
2019-10-08 09:50:15 -05:00
Ryan Gonzalez 1865feb7d6 Implement PEP 3107 & 526 annotations (closes #1794) 2019-10-08 09:40:15 -05:00
Kodi Arfer 8351ccf9d9 Allow inline Python 2019-09-17 12:04:03 -04:00
Ryan Gonzalez 1b8b1f110a
Merge pull request #1813 from Kodiologist/homeless
Avoid a crash when we can't access a history file
2019-08-19 12:40:08 -05:00
Kodi Arfer e5461f171c Update NEWS and documentation 2019-08-18 09:45:40 -04:00
Kodi Arfer ad74a92e2d Avoid a crash when we can't access a history file 2019-08-16 19:03:34 -04:00
Kodi Arfer 84fbf04f84 Fix AST representation of format strings 2019-08-13 16:07:46 -04:00
Kodi Arfer 6fb6eefd6b Make augmented assignment operators variadic 2019-08-08 15:12:03 -04:00
Kodi Arfer d32e460531 Remove some exceptions in keyword parsing 2019-07-24 11:21:11 -04:00
Ryan Gonzalez 289f172d56 Fix #1790: Rework statements in while condition
This avoids compiling them more than once while also applying some simplification.
2019-07-22 11:34:48 -04:00
Kodi Arfer d99cf80986 Run statements in the second argument of `assert`
I've edited the test to use a list instead of a set because the order of evaluation probably ought to be guaranteed.
2019-07-21 10:17:24 -04:00
Kodi Arfer c99360b294 Remove support for `defclass` attribute lists 2019-07-17 14:34:31 -04:00
Kodi Arfer 081c22d50b Update NEWS 2019-06-04 14:01:59 -04:00
Kodi Arfer 03eff1374c Update NEWS for release 2019-05-19 13:34:55 -04:00
Kodi Arfer e77ce92635 Simplify gensym format 2019-04-29 08:10:51 -04:00
Kodi Arfer 6c74cf1f07 Add `setx` for assignment expressions 2019-04-23 15:35:12 -04:00
Kodi Arfer 63ba27b36d Update trove classifiers and NEWS 2019-04-23 15:35:12 -04:00
Tristan Cacqueray d793cee90a add `tuple?` function `hy.core`
`tuple?` will test if the argument is an instance of tuple.
2019-04-23 15:25:49 -04:00
Tristan Cacqueray b0ed103931 add `list?` function to `hy.core`
`list?` will test if the argument is an instance of list.
2019-04-09 00:07:10 +00:00
Andrew R. M da823d2cad Fix a temporary-file crash 2019-04-06 15:43:10 -04:00
Kodi Arfer 30fc1425c1 Update docs and README 2019-03-17 18:40:37 -04:00
Kodi Arfer 5bfc140b4d Implement format strings 2019-02-26 14:04:24 -05:00
Kodi Arfer 6769dda4b5 Clean up NEWS 2019-02-07 14:06:58 -05:00
Kodi Arfer 96d1b9c3fa Update README 2019-02-07 13:50:30 -05:00
Kodi Arfer f1e693c96b Fix a Python 2 crash 2019-02-03 14:13:48 -05:00
Kodi Arfer b777972a0e Fix mangling of characters below 0xFF 2018-12-14 15:54:23 -05:00
Brandon T. Willard f040bbe96f Update NEWS 2018-11-29 14:37:52 -06:00
Brandon T. Willard 3d0659b723 Update NEWS 2018-11-28 16:35:42 -06:00
Jakub Wilk 28504ba85d Catch IndentationError in isidentifier()
Fixes:

    >>> from hy._compat import isidentifier
    >>> isidentifier(u"  0\n 0")
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "hy/_compat.py", line 47, in isidentifier
        tokens = list(T.generate_tokens(StringIO(x).readline))
      File "/usr/lib/python2.7/tokenize.py", line 374, in generate_tokens
        ("<tokenize>", lnum, pos, line))
      File "<tokenize>", line 2
        0
        ^
    IndentationError: unindent does not match any outer indentation level
2018-11-27 17:15:21 -05:00
Brandon T. Willard 3b01742818 Update NEWS 2018-11-08 22:57:17 -06:00
Brandon T. Willard f4e5f02b3e Updated NEWS 2018-09-11 16:26:21 -04:00
Brandon T. Willard b12fd33e6f Update NEWS 2018-08-26 00:27:36 -05:00
Kodi Arfer 7ba2105a2b Fix date and time hy-reprs on Windows 2018-08-08 09:26:20 -04:00
gilch 109c0b0f5b
Merge pull request #1664 from brandonwillard/require-in-macroexpand-all
Expand `require`d macros in `macroexpand-all`
2018-08-02 23:57:32 -06:00
Brandon T. Willard a46cc39d6b Include `macroexpand-all` changes in AUTHORS and NEWS 2018-07-25 17:22:40 -05:00
Kodi Arfer 081a710b0f Fix handling of unpacking in method calls and attribute lookups 2018-07-24 09:45:00 -07:00
Kodi Arfer 1d2c73165d Make HyKeyword callable
Co-authored-by: Simon Gomizelj <simon@vodik.xyz>
2018-07-24 09:19:37 -07:00
Kodi Arfer 03aafad657 Make empty expressions illegal at the top level 2018-07-24 08:59:52 -07:00