Commit Graph

2810 Commits

Author SHA1 Message Date
Sören Tempel
f5977555f4 Add Sören Tempel to AUTHORS 2019-09-23 21:54:46 +02:00
Sören Tempel
31041f1713 get_version.py: allow specifying version in environment variable
While packaging hy for Alpine Linux I noticed that the VERSIONFILE is
ignored if hy is build in a git repository. On Alpine the packages are
build in the package repository resulting in a wrong hy version. This
change allows specifying the version in an environment variable which is
preferred over git-describe(1) and the VERSIONFILE.
2019-09-23 20:35:48 +02:00
Kodi Arfer
84d1a116f6
Merge pull request #1817 from Kodiologist/inline-python
Allow inline Python
2019-09-17 12:04:26 -04:00
Kodi Arfer
8351ccf9d9 Allow inline Python 2019-09-17 12:04:03 -04:00
Kodi Arfer
80771ac99c Remove documentation of print in api.rst
There is no longer any such special form. We just use Python 3's built-in function.
2019-09-17 12:04:03 -04:00
Ryan Gonzalez
45bb0ff954
Merge pull request #1819 from Kodiologist/stack-overflow
Advertise our Stack Overflow tag
2019-09-11 16:44:27 -05:00
Kodi Arfer
f227f689d9 Advertise our Stack Overflow tag 2019-09-11 10:24:03 -04:00
Kodi Arfer
645d2e0b8e
Merge pull request #1811 from Kodiologist/intro-docs-improvements
Overhaul introductory documentation
2019-08-19 14:03:21 -04:00
Kodi Arfer
6c93fc6ff1 Overhaul introductory documentation
- Removed links to non-updated code and badges.
- Compressed `quickstart.rst` into a few sentences at the very start of the docs.
- Added a "Why Hy?" chapter discussing Hy's features and comparing Hy to Python and other Lisps.
- Rewrote the tutorial to be more accessible to non-Python programmers and to be greater in breadth but lesser in depth.
- Cut down on the self-congratulatory manic tone and exclamation points, while keeping the jokes I liked best.
2019-08-19 14:00:53 -04:00
Kodi Arfer
1e77f38d10 Expand the documentation of setv 2019-08-19 13:53:48 -04:00
Kodi Arfer
627455a336 Add some documentation anchors 2019-08-19 13:53:48 -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
ee35d61e58
Merge pull request #1804 from Kodiologist/immutable-models
Immutable Hy models
2019-08-18 09:49:45 -04:00
Kodi Arfer
e5461f171c Update NEWS and documentation 2019-08-18 09:45:40 -04:00
Kodi Arfer
7aaece3725 Use #* assignments instead of head-tail 2019-08-18 09:44:29 -04:00
Kodi Arfer
e6aac2308a Update tests for tuple HySequences 2019-08-18 09:43:02 -04:00
Kodi Arfer
cc8948d9b9 Return plain lists from HyDict.keys, .values 2019-08-18 09:43:02 -04:00
Kodi Arfer
8576d00ce8 Implement HySequence with tuples instead of lists 2019-08-18 09:43:02 -04:00
Kodi Arfer
52c0e4e221 Add explicit checks for HyList 2019-08-18 09:43:02 -04:00
Kodi Arfer
dce0e10f3f Use nonlocal instead of a singleton list 2019-08-18 09:43:02 -04:00
Kodi Arfer
4a40ff3d7e Check for HySequence in hy.contrib.walk 2019-08-18 09:43:02 -04:00
Kodi Arfer
95ad5a01c8 Avoid mutating HyLists in hy.contrib 2019-08-18 09:43:02 -04:00
Kodi Arfer
9ddb3b1031 Rewrite _with 2019-08-18 09:43:02 -04:00
Kodi Arfer
6cced31738 Rewrite cond 2019-08-18 09:43:02 -04:00
Kodi Arfer
88c0f92810 Clean up string handling in _compile_assign 2019-08-18 09:43:02 -04:00
Kodi Arfer
bc524daee8 Remove dead code 2019-08-18 09:43:02 -04:00
Kodi Arfer
419558ef54
Merge pull request #1814 from josephtoles/master
Fixed broken link to Graphviz
2019-08-17 08:33:37 -04:00
lsusr
6929973d0d Fixed broken link to Graphviz 2019-08-17 00:39:04 -07: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
2942419bc8
Merge pull request #1803 from Kodiologist/fstring2py
Fix AST representation of format strings
2019-08-13 16:13:01 -04:00
Kodi Arfer
84fbf04f84 Fix AST representation of format strings 2019-08-13 16:07:46 -04:00
Kodi Arfer
7908b663ad
Merge pull request #1800 from Kodiologist/augs
Make augmented assignment operators variadic
2019-08-08 15:17:53 -04:00
Kodi Arfer
a9c6ab6391 Remove native_tests/mathematics
It should now be fully redundant with native_tests/operators.
2019-08-08 15:12:03 -04:00
Kodi Arfer
6fb6eefd6b Make augmented assignment operators variadic 2019-08-08 15:12:03 -04:00
Kodi Arfer
d6ae646c66
Merge pull request #1799 from Kodiologist/kwp
Remove some exceptions in keyword parsing
2019-08-08 15:11:44 -04:00
Kodi Arfer
d32e460531 Remove some exceptions in keyword parsing 2019-07-24 11:21:11 -04:00
Kodi Arfer
5b20fa9dfb
Merge pull request #1793 from refi64/py2-cleanup
Pre-Python 3.4 cleanup (including Python 2)
2019-07-22 14:19:40 -04:00
Ryan Gonzalez
6f3b6ca735 Pre-Python 3.4 cleanup (including Python 2) 2019-07-22 14:11:17 -04:00
Kodi Arfer
cf91e16235
Merge pull request #1792 from refi64/while-cond
Rework statements in while condition
2019-07-22 14:10:32 -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
3a4e31c209
Merge pull request #1791 from Kodiologist/assertmsg
Run statements in the second argument of `assert`
2019-07-21 11:19:22 -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
3afb4fdabe Use mkexpr in HyASTCompiler.imports_as_stmts 2019-07-21 10:17:24 -04:00
Kodi Arfer
349da353d6 Factor out compiler subs for constructing HyExprs 2019-07-21 10:17:24 -04:00
Ryan Gonzalez
e777f25796
Merge pull request #1797 from Kodiologist/doc-await
Document `await`
2019-07-18 11:49:13 -05:00
Kodi Arfer
0fcf570a3f Document await 2019-07-18 10:43:01 -04:00
Kodi Arfer
1b1a6d7684
Merge pull request #1789 from Kodiologist/rm-defclass-attr-list
Remove the attribute list of `defclass`
2019-07-17 14:40:13 -04:00
Kodi Arfer
8b101d1214 Update documentation 2019-07-17 14:34:31 -04:00
Kodi Arfer
c99360b294 Remove support for defclass attribute lists 2019-07-17 14:34:31 -04:00
Kodi Arfer
6bc9e842e1 Clean up whitespace 2019-07-17 14:34:31 -04:00