Skip to content

Commit fba87b1

Browse files
authored
Update README.md
1 parent 269d607 commit fba87b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

02-array-seq/lispy/py3.9/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ _Luciano Ramalho_
77

88
## Major changes
99

10-
* Make the `lambda` form accept more than one expression as the body. This is consistent with _Scheme_ syntax, and provides a useful example for the book. To implement this:
10+
* Make the `lambda` form accept more than one expression as the body. This is consistent with [_Scheme_ syntax](https://web.mit.edu/scheme_v9.2/doc/mit-scheme-ref/Lambda-Expressions.html), and provides a useful example for the book. To implement this:
1111
* In `Procedure.__call__`: evaluate `self.body` as a list of expressions, instead of a single expression. Return the value of the last expression.
1212
* In `evaluate()`: when processing `lambda`, unpack expression into `(_, parms, *body)`, to accept a list of expressions as the body.
1313
* Remove the `global_env` global `dict`. It is only used as a default value for the `env` parameter in `evaluate()`, but it is unsafe to use mutable data structures as parameter default values. To implement this:
@@ -16,7 +16,7 @@ _Luciano Ramalho_
1616
* Rewrite the custom test script
1717
[lispytest.py](https://github.com/norvig/pytudes/blob/705c0a335c1811a203e79587d7d41865cf7f41c7/py/lispytest.py) as
1818
[lis_test.py](https://github.com/fluentpython/example-code-2e/blob/master/02-array-seq/lispy/py3.9/lis_test.py):
19-
a standard [pytest](https://docs.pytest.org) test suite including new test cases, preserving all Norvig's the test cases for
19+
a standard [pytest](https://docs.pytest.org) test suite including new test cases, preserving all Norvig's test cases for
2020
[lis.py](https://github.com/norvig/pytudes/blob/705c0a335c1811a203e79587d7d41865cf7f41c7/py/lis.py)
2121
but removing the test cases for the features implemented only in
2222
[lispy.py](https://github.com/norvig/pytudes/blob/705c0a335c1811a203e79587d7d41865cf7f41c7/py/lispy.py)

0 commit comments

Comments
 (0)