Commit 5208d45
Say that
The list of recognized forms showed only `f << (lambda ...)` for env-assignment
and let bindings. Both accept `f := (lambda ...)` too, and `namedlambda` names it
either way - checked by running all four forms, which come out as `f`, `g`, `h`
and `k` respectively.
Not a wrong statement, an incomplete one, and the incompleteness is the kind that
misleads: the walrus already appears two bullets above meaning Python's own named
expression, so a reader seeing `<<` alone below could reasonably conclude that
`:=` in an env binding is the *other* thing and would not be named.
So the note says what actually distinguishes them, which is not the operator but
whether an unpythonic environment is in scope.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KXtTyQjwqYreB5KKdeE7h9namedlambda names env-assignments in either spelling1 parent 0e6cf71 commit 5208d45
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
101 | 105 | | |
102 | 106 | | |
103 | 107 | | |
| |||
0 commit comments