Kodi Arfer
8872f0b44c
Remove hy.contrib.multi
2019-11-18 20:06:17 -05:00
Kodi Arfer
e6aac2308a
Update tests for tuple HySequences
2019-08-18 09:43:02 -04:00
Kodi Arfer
9ddb3b1031
Rewrite _with
2019-08-18 09:43:02 -04:00
Kodi Arfer
bc524daee8
Remove dead code
2019-08-18 09:43:02 -04:00
Kodi Arfer
308bedbebe
Remove uses of defclass
attribute lists
2019-07-17 14:34:31 -04:00
Kodi Arfer
ea872c3983
Remove native tests of Python 2
2019-06-04 14:01:59 -04:00
Kodi Arfer
62638b44a3
Update copyright years
2019-02-07 08:57:35 -05:00
Brandon T. Willard
65b2bd18ce
Add a test for require
in the body of a macro
2018-07-25 17:20:19 -05:00
gilch
8c79015b40
Fix let rebind bug.
2018-06-27 23:41:49 -06:00
gilch
9a8886a452
Proper special indent in let tests.
2018-06-27 23:38:06 -06:00
Kodi Arfer
cf0dafef9b
Update uses of the old comprehension forms
2018-06-13 17:31:08 -07:00
Kodi Arfer
3256932b13
Add a version of for
parallel to lfor
etc.
2018-06-13 17:31:08 -07:00
Kodi Arfer
74bf3e9e81
Work around a scoping bug in multi.defn ( #1630 )
2018-06-05 10:23:32 -07:00
gilch
049c78f5d5
Fix bug in let's handle-dot.
2018-05-18 10:40:59 -07:00
Kodi Arfer
a605936651
Remove &key
...
It's redundant with &optional.
2018-04-19 09:26:02 -07:00
Kodi Arfer
097647bf6f
Remove tests of cons cells
2018-04-12 16:45:17 -07:00
Simon Gomizelj
1b7dfd2839
Make HyKeyword a first class objects
...
HyKeywords are no longer an instances of string with a particular
prefix, but a completely separate object.
This means keywords no longer trip isinstance str checks, adding a
little bit of type safety to the compiler.
It also means that HyKeywords evaluate to themselves.
Closes #1352
2018-04-07 22:29:20 -07:00
Kodi Arfer
cf60dc7a13
Fix a hy-repr test for Python 3.7
2018-03-24 12:34:43 -07:00
Kodi Arfer
0574e275b5
Make hy-repr support some collections
classes
2018-03-10 18:11:07 -08:00
Kodi Arfer
38f461890d
Make hy-repr support DateTime objects
2018-03-10 18:11:07 -08:00
Kodi Arfer
3dbe05302e
Make hy-repr support regex match objects
2018-03-10 18:11:07 -08:00
Kodi Arfer
f7ab9a6e7c
Make hy-repr support dictionary views
2018-03-10 18:11:07 -08:00
Kodi Arfer
90a09b5b44
Make hy-repr use double spaces for dictionaries
2018-03-10 18:11:07 -08:00
Kodi Arfer
199bb70150
Add a hy-repr test for keyword-like bytes objects
2018-03-10 18:11:07 -08:00
Kodi Arfer
4f2706e18e
Test a case where hy-repr shouldn't round-trip
2018-03-10 18:11:07 -08:00
Kodi Arfer
83c4f63bc2
Reimplement hy-repr with registered functions
...
This removes a lot of hy-reprs that were hard-coded into the hy-repr function itself. It also allows you to add a hy-repr for an existing class without monkey-patching the class.
2018-03-10 18:11:07 -08:00
Tuukka Turto
5c720c0110
Merge pull request #1473 from Kodiologist/new-year-2018
...
Update copyright years
2018-02-05 15:11:59 +02:00
Simon Gomizelj
0cd4df3898
Remove def and standardize on setv
2018-01-21 00:25:33 -05:00
Kodi Arfer
6de7ddfee5
Update copyright years
2018-01-01 10:38:33 -05:00
gilch
e90f082baf
back let
with dict for better defclass behavior
2017-10-30 20:23:57 -06:00
gilch
a54f6aa38b
add hidden &name parameter to macros
...
The module name allows macros to preexpand their body in the proper
context.
2017-09-23 14:59:43 -06:00
gilch
5bbf4d9894
fix premature binding in let
2017-09-22 20:07:48 -06:00
gilch
20b4342d40
support (global) in let
2017-09-18 14:54:08 -06:00
gilch
ba898aa8d8
support (nonlocal) in let
2017-09-18 13:51:32 -06:00
gilch
34038ff433
implement let
2017-09-18 12:21:42 -06:00
David Schaefer
432d560310
No TypeError from multi-arity defn returning None
2017-08-04 17:08:41 +02:00
Kodi Arfer
0bbb5f8e34
hy-repr: Support #* and #**
2017-07-19 10:25:24 -07:00
Kodi Arfer
97ecb0b553
Remove apply
from tests
2017-07-17 13:34:42 -07:00
Kodi Arfer
5a1e6a7c6a
hy-repr: Support NaN and Inf
2017-07-10 08:50:49 -07:00
Kodi Arfer
2eb81864df
Make all files comply with license-header policy
2017-04-27 14:16:57 -07:00
Kodi Arfer
5aadeba3fe
Fix bug: loop
replaced strings equal to "recur"
2017-03-30 15:49:10 -07:00
Kodi Arfer
bf2f90a0d9
Add hy.contrib.hy-repr
2017-03-24 08:43:53 -07:00
Kodi Arfer
d72abb39f1
Remove uses of let
from various tests
2017-02-04 09:07:27 -08:00
Kodi Arfer
91b26d1fdd
Remove contrib.meth
...
This seems to be specific to Flask, a web framework.
2016-12-29 08:35:54 -08:00
Kodi Arfer
85b4160637
Remove contrib.curry
...
It's undocumented and of dubious value.
2016-12-29 08:35:54 -08:00
Kodi Arfer
e5c6f733a4
Remove tests for contrib.botsbuildbots
...
This is an Easter egg whose tests add a dependency (requests) and cause a test failure if you don't have an active Internet connection.
2016-12-29 08:35:54 -08:00
Kodi Arfer
8eceb4fe9d
Move contrib.anaphoric to contrib.extra
2016-12-29 08:35:41 -08:00
Kodi Arfer
d980a4a8ee
Remove contrib.alias
...
I don't see why you'd put this in the standard library. I guess it could be useful for when you're maintaining a library and you want to change the name of a function or macro but keep the old name around for a while so people's code doesn't break immediately. But that's a pretty limited purpose.
2016-12-26 15:39:26 -08:00
Kodi Arfer
b3d7069fb3
Merge branch 'seq'
2016-12-08 10:27:33 -08:00
Kodi Arfer
6bf5ebd8ee
Remove some trailing spaces
2016-12-07 16:17:52 -08:00