Commit Graph

95 Commits

Author SHA1 Message Date
Allison Kaptur
3f9ae9122e Raise exceptions when no handlers are provided.
Also small DRYing in try handling.

Previously, writing a bare (try (foo)) would invoke Pokemon
exception catching (gotta catch 'em all) instead of the correct
behavior, which is to raise the exception if no handler is provided.

Note that this is a cute feature of Hy, as a `try` with no `except`
is a syntax error.  We avoid the syntax error here because we don't
use Python's compiler, which is the only thing that can throw
Syntax Errors.  :D

Fixes #555.
2014-04-28 03:08:30 +03:00
Berker Peksag
e0584a605f Add @ivan to AUTHORS. 2014-03-18 16:06:11 +02:00
Berker Peksag
66dadf2d1a Add @bcj to AUTHORS. 2014-03-13 04:52:34 +02:00
Berker Peksag
6829d6fb3a Tweak the zipwith doc a bit and add @kirbyfan64 to AUTHORS. 2014-02-22 02:21:34 +02:00
Paul Tagliamonte
2a8a7f3f79 Merge branch 'master' into pr/484
Conflicts:
	AUTHORS
2014-02-15 11:57:43 -05:00
Paul Tagliamonte
3c9947a3f6 add @microamp to authors 2014-02-12 23:59:36 -05:00
Richard Parsons
6b4e3940aa updated import documentation 2014-02-11 15:54:55 +00:00
halit
afff5fd93b Add new author 2014-01-30 15:55:30 +02:00
Brian McKenna
13a88b358e Add Brian McKenna to AUTHORS 2014-01-25 18:15:49 -07:00
Abhishek L
e71631f48f Wrong email id, I messed up that commit 2014-01-20 22:46:17 +05:30
Abhishek L
4d95cc48a5 Add @jackhooper to authors 2014-01-20 21:17:22 +05:30
Berker Peksag
d4bc17461c Add @f to AUTHORS. 2014-01-17 04:04:23 +02:00
Yuval Langer
e50ca4fc07 Correcting typos. 2014-01-16 03:54:44 +02:00
Paul Tagliamonte
8adae9a01f No fox for you. 2014-01-01 12:41:22 -05:00
Paul Tagliamonte
553337080a Adding missing AUTHORs from the git log. Sorry, folks. 2014-01-01 12:39:06 -05:00
Abhishek L
48f916b34f Add myself to authors 2013-12-31 21:58:40 +05:30
Paul Tagliamonte
f189f0a457 Add Kenan Bölükbaşı to AUTHORS. 2013-12-28 18:48:47 -05:00
Joe H. Rahme
61112138ca Adds try-hy to the docs
As requested in PR #350.
This commit also adds Joe "rahmu" Hakim Rahme to the AUTHORS file
2013-12-05 23:07:46 +05:30
Paul Tagliamonte
2f845c2a1e Add @hcarvalhoalves to AUTHORS. We fucked up that PR :) 2013-12-03 00:03:13 -05:00
Nicolas Dandrimont
9ea153fd7e Add @berkerpeksag to AUTHORS 2013-09-29 15:10:33 +02:00
kaizoku
b892ec4e66 Add zero? predicate to check if an object is zero 2013-09-02 02:28:21 -07:00
Bob Tolbert
df7bb1d29a Provide bin scripts for both Windows and *nix
Summary: This update does away with the scripts in bin and changes
setup.py to use entry_points in cmdline.py for the scripts 'hy' and
'hyc'.

This fixes installing and running on Windows.

The tests are updated to run the 'hy' script produced by setup.py
and not from bin/hy. This is more correct and makes the tox tests
run on both Window and *nix.

For running hy or nosetests directly in the source tree, you do have
to run 'python setup.py develop' first. But since tox runs and builds
dists, all tox tests pass on all platforms.

Also, since there is no built-in readline on Windows, the setup.py
only on Windows requires 'pyreadline' as a replacement.

Switched from optparse to argparse in cmdline.py

Instead of trying to manually separate args meant for
hy from args meant for a hy script, this switches from
optparse to argparse for the CLI.

argparse automatically peels out args meant for hy and leaves
the rest, including the user hy script in options.args.

This fixes the issue @paultag found running "hy foo" where
foo is not a real file. Also added a test that makes sure
trying to run a non-existent script exits instead of dropping
the user into the REPL.

Added argparse as setup.py resource (and removed from tox.ini) as well as removed uses of deprecated setf
2013-07-14 09:06:42 -06:00
Ralph Moritz
888dc19882 Get Hy working on Windows by making readline use conditional. 2013-07-01 22:41:56 +02:00
Nicolas Dandrimont
b65c2a4596 whitespace fix 2013-06-26 08:50:37 +02:00
Guillermo Vaya
4c7b4f70e3 changed try to testing for an empty list for legibility (as suggested by paultag), also added to authors 2013-06-26 08:50:37 +02:00
Morten Linderud
56bae8cc54 FIxed Authors 2013-06-23 04:18:22 +02:00
Paul Tagliamonte
8935a998ad Add @thomasballinger to AUTHORS 2013-06-08 20:18:34 -04:00
Paul Tagliamonte
4d625fff20 Add @rogererens to authors 2013-05-13 19:59:54 -04:00
Paul Tagliamonte
592129502b Adding @egenhombre to AUTHORS 2013-04-21 10:53:34 -04:00
Paul R. Tagliamonte
3e0ff4a9b2 Adding @vladimir-g to AUTHORS 2013-04-13 10:50:55 -04:00
Paul R. Tagliamonte
e55e63c759 Add @khinsen to AUTHORS 2013-04-09 19:55:19 -04:00
Paul R. Tagliamonte
5ff40c5e30 Forgot to add @algernon to AUTHORS 2013-04-07 18:58:45 -04:00
Nicolas Dandrimont
b098070a7d Add myself to AUTHORS 2013-04-03 21:03:34 +02:00
Paul Tagliamonte
7fed29dad8 Forgot to add @jd to AUTHORS. Thanks! 2013-04-03 09:22:37 -04:00
Paul Tagliamonte
12106d3d37 idle cleanup 2013-04-02 14:50:16 -04:00
Christopher Allan Webber
6deb8e303c Adding Will to the AUTHORS 2013-04-01 11:21:00 -05:00
Christopher Allan Webber
6c8f0da256 Adding a super basic tutorial to the docs. 2013-03-31 16:46:56 -05:00
Paul R. Tagliamonte
7288164309 Adding @rumple to AUTHORS 2013-03-19 03:09:18 -04:00
Thomas Mashek
a832567f26 Adding authors 2013-03-13 08:22:31 -07:00
Paul Tagliamonte
f5836da2a5 Kill everything 2013-02-27 19:00:52 -05:00
Paul Tagliamonte
c9ae4f33d5 Adding @algernon to AUTHORS. 2013-01-11 19:40:35 -05:00
Paul Tagliamonte
c751f4526f author update 2012-12-23 14:11:38 -05:00
Paul Tagliamonte
87b602fc9f m'fn kwargs 2012-12-22 23:07:09 -05:00
Paul Tagliamonte
7f4b4f8bf8 Getting fib working :> 2012-12-18 19:02:50 -05:00
Paul Tagliamonte
79827d7bbe Biding my time before the morning meeting 2012-12-17 09:55:41 -05:00