Kodi Arfer
30fc1425c1
Update docs and README
2019-03-17 18:40:37 -04: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
Eli
e4fd74af1b
Clarifying &optional documentation ( fixes #1722 )
2019-01-20 17:11:52 -05:00
Eli
3d2be62d4b
Add synonyms for argument unpacking, for text-search purposes
2019-01-19 13:33:54 -05:00
Kodi Arfer
45e99d027d
Fix an intersphinx link
2018-07-24 09:31:36 -07:00
Kodi Arfer
e05af9d7e0
Document function docstrings
2018-07-11 11:59:46 -07:00
Kodi Arfer
9859b0085c
Document the required order of &-parameters
2018-07-11 11:36:32 -07:00
Kodi Arfer
da754c0e5d
Update NEWS and docs for the new comprehensions
2018-06-13 17:31:08 -07:00
Philip Xu
0b08916174
Fix typos and improve code examples
2018-05-16 18:25:53 -04:00
Philip Xu
643196c2b8
Remove mixtures of tabs and spaces
2018-05-15 23:29:07 -04:00
Kodi Arfer
a605936651
Remove &key
...
It's redundant with &optional.
2018-04-19 09:26:02 -07:00
Kodi Arfer
4d77dd0d40
Spin off syntax documentation from api.rst
2018-03-13 14:56:49 -04:00
Jakub Wilk
d1cb630698
Fix typos
2018-02-15 16:35:33 +01:00
Tuukka Turto
cf87de5cc2
Merge pull request #1483 from vodik/remove-def
...
Just remove `def`
2018-01-31 08:54:59 +02:00
Simon Gomizelj
0cd4df3898
Remove def and standardize on setv
2018-01-21 00:25:33 -05:00
Tuukka Turto
a9621817f9
Merge pull request #1433 from Kodiologist/while-multistatement
...
Handle statements in the condition of `while`
2018-01-11 07:45:27 +02:00
Jakub Wilk
03cd437f01
Fix typo
2018-01-08 22:45:00 +01:00
Simon Gomizelj
c5231bc242
Document defn/a, fn/a, for/a, with/a
2017-12-31 09:02:46 -05:00
Rob Day
76bbf05812
Update documentation to cover new 'try' body rules
2017-12-03 09:47:41 +00:00
Jakub Wilk
e2e1b04ea3
Fix typos
2017-11-26 00:44:03 +01:00
Kodi Arfer
1b3fc81f3f
Document eval-X-compile
2017-11-02 08:43:43 -07:00
Kodi Arfer
b25a69179f
Update the documentation of while
2017-11-02 07:32:03 -07:00
gilch
91bdaea535
add documentation macros
2017-10-30 21:25:25 -06:00
Ryan Gonzalez
db210929d0
Merge pull request #1360 from gilch/model-repr
...
proper reprs for Hy models
2017-09-18 08:45:28 -05:00
Rob Day
5a6488e353
Treat _42 etc. as a variable name, not an integer
2017-09-16 16:12:29 -07:00
Kodi Arfer
0c229ebda5
NEWS and docs for hashstrings
2017-09-08 11:27:34 -07:00
Kodi Arfer
0a633d8024
Correct a ReST syntax typo
2017-09-08 11:27:34 -07:00
gilch
af8d209496
update docs for new hy model reprs
2017-09-08 10:59:57 -07:00
Kodi Arfer
cebb820b6c
Update NEWS and docs for return
2017-08-20 08:45:17 -07:00
Ryan Gonzalez
dea99c8b76
Merge pull request #1354 from gilch/comment-discard
...
add #_ discard syntax
2017-08-19 11:29:57 -05:00
Kodi Arfer
8d40a68232
Initialize the return variable of with
2017-08-19 07:35:41 -07:00
gilch
4dd57c84ee
NEWS and docs for (comment ...) and #_
2017-08-04 16:37:39 -06:00
Hikaru Ikuta
dbffe987f5
Update docs on unquote-splice
2017-08-02 18:03:24 +09:00
Kodi Arfer
3f3cce8785
Update docs: apply
is gone; #* and #** are in
2017-07-19 11:00:43 -07:00
Kodi Arfer
bb91b57dca
Require capitalizing NaN and Inf like so
2017-07-10 08:50:49 -07:00
Kodi Arfer
ca95194240
Change eval
from a special form to a function
2017-06-27 08:14:29 -06:00
gilch
6cd3201421
rename sharp macros to tag macros
2017-06-22 22:48:46 -06:00
gilch
20c26a52e4
make sharp macros take arbitrary identifiers
...
Previously, only a single character was allowed.
2017-06-22 22:46:24 -06:00
neil-lindquist
d3df17d9d8
Modify cond to support single argument branches
2017-06-10 08:30:53 -07:00
Kodi Arfer
dffa2811e6
Return from the else
clause of a try
form
...
I overhauled the documentation of `try` while I was editing it.
2017-05-25 20:48:09 -05:00
Kodi Arfer
4c38e2c9dd
Rename reader macros to "sharp macros" ( #1282 )
...
They're not actually reader macros, since their arguments are parsed s-expressions, like a regular macro, not pre-parsed source text.
2017-04-21 10:07:48 -05:00
Kodi Arfer
18acfe6495
Revert the extension of with-decorator
to setv
...
This is no longer necessary now that `defn` always produces a `FunctionDef`.
To compensate, I've made small edits to two contrib modules and reverted a small test change.
2017-04-13 06:36:00 +03:00
Kodi Arfer
36d09cb194
More documentation of strings and keywords
...
Currently, HyKeyword is not in fact a subclass of HyString, so I removed that statement.
2017-04-01 08:23:41 +03:00
Kai Lüke
80f0e4af14
fix example in documentation to unquote in quasi quote
2017-03-09 15:02:23 +01:00
Kodi Arfer
8b6a45e43a
Remove car
and cdr
in favor of first
and rest
( #1241 )
...
* Remove uses of `car` and `cdr` in /hy
* Remove uses of `car` and `cdr` in quote tests
* Remove `car` and `cdr` in favor of `first` and `rest`
I beefed up the documentation and tests for `first` and `rest` while I was at it.
I defined `car` and `cdr` in native_tests.cons so the tests read a bit more naturally.
2017-03-06 10:34:40 -06:00
Tuukka Turto
8b84114869
Document get in nested structure ( #1236 )
2017-02-24 14:22:27 -08:00
Kodi Arfer
e4a7b317e1
Make fn
work like lambda
and remove lambda
( #1228 )
...
* with-decorator: Allow a `setv` form as the form to be decorated
This feature is of dubious value by itself, but it's necessary to allow `defn` to create a lambda instead of a `def`.
* Make `fn` work the same as `lambda`
That is, allow it to generate a `lambda` instead of a `def` statement if the function body is just an expression.
I've removed two uses of with_decorator in hy.compiler because they'd require adding another case to HyASTCompiler.compile_decorate_expression and they have no ultimate effect, anyway.
In a few tests, I've added a meaningless statement in `fn` bodies to force generation of a `def`.
I've removed `test_fn_compiler_empty_function` rather than rewrite it because it seems like a pain to maintain and not very useful.
* Remove `lambda`, now that `fn` does the same thing
2017-02-22 17:36:52 -06:00
Kodi Arfer
45b7a4ac9d
Add bytestring literals
2017-02-19 09:04:45 +02:00
Kodi Arfer
f3edeb99ae
Allow commas and underscores in numeric literals
...
You can use them as thousands separators.
This change differs from PEP 515 in that not only does it allow commas in addition to underscores, but it's much more liberal about placement. Any number of underscores or commas can be placed anywhere, even at the start.
2017-02-15 09:03:24 +02:00