Tuukka Turto
ec3874377b
Merge branch 'master' of github.com:hylang/hy into xor
...
Conflicts:
hy/core/language.hy
2015-08-07 06:30:37 +03:00
Calem Bendell
12db748c97
corrected slice to cut in docs
...
corrected slice to cut in the documentation.
also corrected a line in parse tumblr that used slice
2015-08-05 13:21:37 +02:00
Tuukka Turto
eaf1a3023a
Change xor to binary function
...
xor with more than two input parameters is not well defined and people
have different expectations on how it should behave. Avoid confusion by
sticking with two parameters only.
2015-08-03 05:37:39 +03:00
Tuukka Turto
ca8b6b4fe5
Add exclusive or logical operator
...
Added xor to complement and, or, not operators. Standard python
falsey/truthy semantics are followed. This implementation works for
two or more parameters.
2015-08-02 23:57:46 +03:00
Zack M. Davis
016557deab
reader macro #@ for with-decorator
...
The `with-decorator` special form is not the most ergonomic—this commit
introduces a new builtin `#@` reader macro that expands to an invocation
of `with-decorator`. To support this, `reader_macroexpand` is made to
also look in the default `None` namespace, in imitation of how
regular (non-reader) macros defined in hy.core are looked up. The
docstring of `hy.macros.reader` is also edited slightly for accuracy.
This in the matter of issue #856 .
2015-07-26 15:05:38 -07:00
Ryan Gonzalez
736d7a7991
Let setv take pairs of arguments (ref. #844 )
2015-07-25 17:45:34 -05:00
Zack M. Davis
4b00a84f9f
documentation for &kwonly
2015-07-22 22:06:51 -07:00
Morten Linderud
c2fe74c4a2
Merge pull request #803 from farhaven/nonlocal-doc
...
Add documentation for the (nonlocal ...) directive
2015-07-01 15:30:30 +02:00
Gregor Best
b106e3c08d
Expand doc for defn with &kwargs
2015-07-01 14:57:53 +02:00
Ewald Grusk
296b6eaa2a
documents order of variable assignments in let expressions
2015-06-13 21:10:57 +02:00
Gregor Best
4adddbbf25
Allow specification of global table and module name for (eval ...)
2015-05-20 20:44:52 +02:00
Gregor Best
802ef0cd0d
reword nonlocal doc a bit to mention nested fn scopes as well
2015-05-12 09:30:22 +02:00
Gregor Best
5743f6ae78
Add versionadded
tag to nonlocal doc
2015-05-12 09:29:55 +02:00
Gregor Best
e4ed5cc357
Mention that nonlocal
is for Python3.0 and up only
2015-05-12 00:00:54 +02:00
Gregor Best
9ed9bc5e11
Add documentation for the (nonlocal ...) directive
...
Signed-off-by: Gregor Best <gbe@unobtanium.de>
2015-05-11 23:38:02 +02:00
Berker Peksag
685688f04c
Update versionadded directives.
...
0.11.0 is a backwards incompatible release.
2015-05-09 22:12:04 +03:00
Antony Woods
0496b7f7b6
Added name to AUTHORS and added documentation
2015-03-19 08:43:11 +00:00
Nicolás Della Penna
750d7b51be
minor change
...
changed the specific values to make the example slightly more clear
2015-03-12 03:38:15 +02:00
Adrià Garriga-Alonso
f7b5486b69
Assert now may take an optional label, like in Python
2015-02-22 17:34:19 +01:00
Kevin Yap
8c0ac0862f
Adhere to CPython's documentation guidelines
...
- Inline code is written using ``double backticks``
- Italicized text uses *asterisks* rather than `single backticks`
- Function parameters are italicized rather than written as inline code
2014-12-07 02:09:43 -08:00
Kevin Yap
997501bcc4
Fixes to language documentation
...
- Use backticks consistently for inline code
- Capitalize section headers and proper nouns
- Minor grammatical fixes
2014-12-06 15:46:44 -08:00
Tianon Gravi
96410f506e
Add a dedicated lisp-if-not
/ lif-not
macro
...
This is in parallel to `if` / `if-not` (so not without precedent). :)
2014-11-06 12:44:15 -07:00
Abhishek L
1da6d0af43
docs: fix decorator to reflect multiple decorators
...
* docs/language/api.rst: the `with-decorator' builtin supports multiple
decorators which it applies in order. Docs are updated to reflect this
2014-05-24 17:35:39 +05:30
Berker Peksag
0f0c4227b6
Merge pull request #604 from Duta/master
...
Minor typo
2014-05-17 22:29:44 +03:00
Bertie Wheen
02fa251175
Minor typo
...
Sorry for tiny commits :P
2014-05-17 19:04:41 +01:00
Bertie Wheen
a102a268a9
Rephrased confusing comment
2014-05-17 18:46:01 +01:00
Tuukka Turto
726d1735db
Merge branch 'master' into pr/571
...
Conflicts:
AUTHORS
tests/native_tests/core.hy
2014-05-13 09:32:51 +03:00
Abhishek L
4f74652c73
the mega typo fix commit
...
Wow! much typos! such fix!
2014-05-05 23:47:14 +05:30
Abhishek L
ad0191f343
Merge master onto pr/580
2014-05-02 19:37:54 +05:30
Tuukka Turto
d539f73d4d
correct ..versionadded:: for defmain
...
my mistake, should have spotted before merging and pushing
2014-05-02 12:27:19 +03:00
Tuukka Turto
b1a928037e
Merge branch 'master' into pr/526
2014-05-02 10:34:37 +03:00
pyos
f02e044719
Move the documentation for zipwith
to the correct place.
2014-04-29 18:04:21 +04:00
Tuukka Turto
01fa9d6a3c
document set-comp
2014-04-28 21:35:28 +03:00
Tuukka Turto
3a66a2d1be
document dict-comp and genexpr
2014-04-28 21:09:06 +03:00
Matthew Wampler-Doty
fa5f51e0f1
Adding Version Added 0.10.1
2014-04-25 08:19:22 -05:00
Matthew Wampler-Doty
834b0019a7
Fixing doto
to be API compatible with Clojure's doto
2014-04-21 12:35:56 -07:00
Tuukka Turto
f4b67e8bd8
documentation for doto
...
relates #567
2014-04-21 13:28:08 +03:00
Morten Linderud
e5e1489f0f
Merge pull request #553 from berkerpeksag/missing-versionadded
...
Add a missing versionadded directive to the lisp-if/lif documentation.
2014-04-13 17:33:20 +02:00
Berker Peksag
c5dfba3c4f
Fix a code-block in the lambda documentation.
2014-04-13 18:04:42 +03:00
Berker Peksag
07b9371cb8
Add a missing versionadded directive to the lisp-if/lif documentation.
2014-04-13 17:42:48 +03:00
Paul Tagliamonte
217f3ad65f
Merge branch 'master' into pr/515
2014-04-10 22:52:41 -04:00
Christopher Allan Webber
d5194f23fa
Properly add yield-from, using python's real "yield from".
...
The yield-from that existed previously wasn't actually implementing the
full complexity of "yield from":
http://legacy.python.org/dev/peps/pep-0380/#formal-semantics
... this includes passing along errors, and many other things.
Also removes the yield-from backport macro, since it does not seem
possible at present to conditionally build macros.
Thus, there is no longer yield-from on pre-python-3.3 systems.
Includes updated docs and tests to reflect all this.
2014-04-10 14:07:49 -05:00
Christopher Allan Webber
774aad2ca8
defmain macro; handles the whole if __name__ == __main__ / main function dance
...
Example:
(defmain [&rest args]
(print "now we're having a fun time!")
(print args))
Which outputs:
$ hy test.hy
now we're having a fun time!
(['test.hy'],)
Includes documentation and tests.
2014-04-10 13:58:38 -05:00
Christopher Allan Webber
f3d978c5a3
Added lisp-if (or lif), with tests and documentation.
...
Now everyone can get along and everyone can have a pony, and that pony is
actually a unicorn that shoots rainbows from its horn.
2014-04-10 13:51:28 -05:00
Abhishek L
378ffae6f7
Fix versionadded in docs to 0.10.0 release
2014-04-10 23:51:32 +05:30
Berker Peksag
3528cc8278
Kill kwapply.
...
Closes #433 .
2014-04-09 20:10:31 +03:00
Christopher Allan Webber
fa69d80b8d
Merge pull request #528 from bcj/patch-2
...
and/or now short-circuit
2014-03-16 15:27:05 -05:00
Brendan Curran-Johnson
a210a673a2
and/or now short-circuit
...
Updated to reflect that and/or actually short-circuit now.
2014-03-14 16:53:10 -05:00
Bob Tolbert
4798863e0f
This change updates the required Pygments version to 1.6, which
...
supports Hy code.
All code-blocks in the documentation have been changed from
clojure to hy.
Also added docs/make.bat for Windows, so the top-level docs
target now works on Windows as well.
2014-03-14 09:01:47 -04:00
Christopher Allan Webber
ecfd737fb9
Document how to supply docstrings to classes and class methods / lambdas
...
We want to encourage good practice, documentation-wise, amongst Hy
users!
2014-02-23 15:20:43 -06:00