Commit Graph

2666 Commits

Author SHA1 Message Date
Kodi Arfer
a38cdb7ccc
Merge pull request #1772 from Kodiologist/py38
Support Python 3.8
2019-04-23 17:31:38 -04:00
Kodi Arfer
6c74cf1f07 Add setx for assignment expressions 2019-04-23 15:35:12 -04:00
Kodi Arfer
7b3ef423c1 Use html.escape instead of cgi.escape
cgi.escape is gone as of Python 3.8.
2019-04-23 15:35:12 -04:00
Kodi Arfer
63ba27b36d Update trove classifiers and NEWS 2019-04-23 15:35:12 -04:00
Kodi Arfer
f236ec8d9a Test Python 3.8 on Travis 2019-04-23 15:35:12 -04:00
Kodi Arfer
8df0a41d7d Provide Module(..., type_ignores) for Python 3.8 2019-04-23 15:35:12 -04:00
Kodi Arfer
0c7ada1e63 Ignore SyntaxWarnings while testing
Python 3.8 introduces SyntaxWarnings for some things we test, like trying to call a string literal as if it were a function.
2019-04-23 15:35:12 -04:00
Kodi Arfer
9f519ed208 Depend on astor master
We need it for Python 3.8.
2019-04-23 15:35:12 -04:00
Kodi Arfer
10e5c9fdaa
Merge pull request #1770 from TristanCacqueray/add-tuple
add `tuple?` function `hy.core`
2019-04-23 15:33:02 -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
Kodi Arfer
c415c6c907
Merge pull request #1766 from eklitzke/master
get_version is not needed in data_files
2019-04-12 13:07:47 -04:00
Evan Klitzke
403442d6b1 get_version is not needed in data_files 2019-04-12 13:06:55 -04:00
Kodi Arfer
c6f11a737f
Merge pull request #1762 from TristanCacqueray/master
add `list?` function to `hy.core`
2019-04-08 20:25:59 -04:00
Tristan Cacqueray
cb5c9ec437 Add Tristan de Cacqueray to the AUTHORS 2019-04-09 00:07:30 +00:00
Tristan Cacqueray
1c7ca7ac1f update contrib and macro to use the new list? function 2019-04-09 00:07:10 +00: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
Kodi Arfer
cbca711865
Merge pull request #1758 from brandonwillard/fix-decorator-error
Check arguments in with-decorator tag
2019-04-08 14:15:32 -04:00
Kodi Arfer
95d1747c71
Merge pull request #1760 from Kodiologist/py37-testing
Test Python 3.7 on Travis
2019-04-08 14:14:53 -04:00
Kodi Arfer
57326785b9
Merge pull request #1767 from nixy/master
Allow Hy to run when installed in read only filesystem
2019-04-06 15:46:03 -04:00
Andrew R. M
9772b3ed86 Update AUTHORS 2019-04-06 15:43:48 -04:00
Andrew R. M
da823d2cad Fix a temporary-file crash 2019-04-06 15:43:10 -04:00
Kodi Arfer
a3962ad19c
Merge pull request #1764 from TristanCacqueray/doc-list
Fix typo for HyList model name in the language internal doc
2019-03-25 21:50:46 -04:00
Tristan Cacqueray
920057c621 Fix typo for HyList model name in the language internal doc 2019-03-26 01:48:13 +00:00
Kodi Arfer
cec940f365 Test Python 3.7 on Travis 2019-03-18 14:37:19 -04:00
Kodi Arfer
f87959f6ba Use the Ubuntu Xenial image on Travis
We need it for Python 3.7.
2019-03-18 14:37:14 -04:00
Kodi Arfer
808f81f7e8
Merge pull request #1759 from Kodiologist/no-py34
Drop support for Python 3.4
2019-03-18 11:16:35 -04:00
Kodi Arfer
30fc1425c1 Update docs and README 2019-03-17 18:40:37 -04:00
Kodi Arfer
ad97042b6b Don't test Python 3.4 2019-03-17 18:36:53 -04:00
Kodi Arfer
efed0b6c23 Move Python 3.5 tests to py3_only_tests.hy 2019-03-17 18:33:06 -04:00
Kodi Arfer
85f203ba43 Remove checks in tests for Python 3.5 2019-03-17 18:30:42 -04:00
Kodi Arfer
0fe7f42efc Remove internal checks for Python 3.5 2019-03-17 18:28:39 -04:00
Brandon T. Willard
9203fcaeb5 Check arguments in with-decorator tag
Fixes #1757.
2019-03-16 23:19:49 -05:00
Kodi Arfer
49c9d8a845
Merge pull request #1752 from TristanCacqueray/master
Add array indexes cut tutorial
2019-03-13 09:12:30 -04:00
Tristan Cacqueray
5d7b069ecb Add collections indexes and slices tutorial
This change adds to the tutorial the hy way of accessing array.
2019-03-13 03:50:06 +00:00
Kodi Arfer
d1aad33cbd
Merge pull request #1749 from Kodiologist/fstrings
Format strings
2019-03-04 14:05:07 -05:00
Kodi Arfer
83e56de0c5 Document format strings 2019-02-27 12:05:19 -05:00
Kodi Arfer
5bfc140b4d Implement format strings 2019-02-26 14:04:24 -05:00
Kodi Arfer
56f51a9a20 Implement hy.lex.parse_one_thing 2019-02-26 13:57:50 -05:00
Kodi Arfer
997321d31c Fix .end_line and .end_column of single-token models 2019-02-24 10:13:17 -05:00
Kodi Arfer
a338e4c323 Clean up a lexing test 2019-02-24 10:13:17 -05:00
Kodi Arfer
952ca3a727
Merge pull request #1750 from digikar99/master
added documentation for defclass docstring
2019-02-20 12:52:40 -05:00
digikar99
d312dd5df2 Fix a ReST underline 2019-02-20 12:47:27 -05:00
digikar99
247e64950d Clean up the documentation of defclass 2019-02-20 12:47:25 -05:00
Kodi Arfer
ebcb374c1e
Merge pull request #1742 from Kodiologist/release
Hy 0.16.0
2019-02-12 16:11:18 -05:00
Kodi Arfer
6769dda4b5 Clean up NEWS 2019-02-07 14:06:58 -05:00
Kodi Arfer
e2d6640e8c
Merge pull request #1687 from brandonwillard/clean-up-exceptions
Generate more concise syntax and compiler errors
2019-02-07 14:03:24 -05:00
Kodi Arfer
96d1b9c3fa Update README 2019-02-07 13:50:30 -05:00
Brandon T. Willard
9e62903d8a Add special exception and handling for wrapper errors 2019-02-07 13:45:41 -05:00
Brandon T. Willard
4ae4baac2a Cache command line source for exceptions
Source entered interactively can now be displayed in traceback output.  Also,
the REPL object is now available in its namespace, so that, for instance,
display options--like `spy`--can be turned on and off interactively.

Closes hylang/hy#1397.
2019-02-07 13:45:41 -05:00
Brandon T. Willard
fb6feaf082 Improve correspondence with Python errors and console behavior
Compiler and command-line error messages now reflect their Python counterparts.
E.g. where Python emits a `SyntaxError`, so does Hy; same for `TypeError`s.
Multiple tests have been added that check the format and type of raised
exceptions over varying command-line invocations (e.g. interactive and not).

A new exception type for `require` errors was added so that they can be treated
like normal run-time errors and not compiler errors.

The Hy REPL has been further refactored to better match the class-structured
API.  Now, different error types are handled separately and leverage more base
class-provided functionality.

Closes hylang/hy#1486.
2019-02-07 13:45:41 -05:00