Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 269d607

Browse files
committed
merging
2 parents 23e78ee + 88a9238 commit 269d607

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎02-array-seq/lispy/README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Norvig's [`lis.py`](https://github.com/norvig/pytudes/blob/c33cd6835a506a57d9fe7
88
* `py3.10/`: `lis.py` with type hints, pattern matching, and minor edits—requires Python 3.10.
99

1010
The `py3.10/` directory also has `lis_test.py` to run with
11-
[pytest](https://docs.pytest.org), including all the
11+
[pytest](https://docs.pytest.org), including the
1212
[`lis_tests` suite](https://github.com/norvig/pytudes/blob/60168bce8cdfacf57c92a5b2979f0b2e95367753/py/lispytest.py#L5)
1313
from `original/lispytest.py`,
1414
and additional separate tests for each expression and special form handled by `evaluate`.
@@ -28,9 +28,9 @@ The copyright holder is Peter Norvig and the code is licensed under the
2828
I made small changes to the programs in `original/`:
2929

3030
* In `lis.py`:
31-
* The `Procedure` class accepts a list of expressions as the `body`, and `__call__` evaluates all those expressions in order, returning the value of the last. This is consistent with Scheme's `lambda` syntax and provided a useful example for pattern matching.
31+
* The `Procedure` class accepts a list of expressions as the `body`, and `__call__` evaluates those expressions in order, and returns the value of the last. This is consistent with Scheme's `lambda` syntax and provided a useful example for pattern matching.
3232
* In the `elif` block for `'lambda'`, I added the `*` in front of the `*body` variable in the tuple unpacking to capture the expressions as a list, before calling the `Procedure` constructor.
3333

3434
* In `lispy.py` I made [changes and a pull request](https://github.com/norvig/pytudes/pull/106) to make it run on Python 3.
3535

36-
_Luciano Ramalho<br/>June 29, 2021_
36+
_Luciano Ramalho<br/>June 29, 2021_

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /