Skip to content

Commit d6dd856

Browse files
committed
variable naming: avoid l
1 parent dcb10b7 commit d6dd856

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

doc/features.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -952,9 +952,9 @@ Set up a pipe by calling ``piped`` for the initial value. Pipe into the sentinel
952952
from unpythonic import lazy_piped1, exitpipe
953953

954954
lst = [1]
955-
def append_succ(l):
956-
l.append(l[-1] + 1)
957-
return l # this return value is handed to the next function in the pipe
955+
def append_succ(lis):
956+
lis.append(lis[-1] + 1)
957+
return lis # this return value is handed to the next function in the pipe
958958
p = lazy_piped1(lst) | append_succ | append_succ # plan a computation
959959
assert lst == [1] # nothing done yet
960960
p | exitpipe # run the computation

unpythonic/seq.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,9 @@ def __or__(self, f):
241241
Examples::
242242
243243
lst = [1]
244-
def append_succ(l):
245-
l.append(l[-1] + 1)
246-
return l # important, handed to the next function in the pipe
244+
def append_succ(lis):
245+
lis.append(lis[-1] + 1)
246+
return lis # important, handed to the next function in the pipe
247247
p = lazy_piped1(lst) | append_succ | append_succ # plan a computation
248248
assert lst == [1] # nothing done yet
249249
p | exitpipe # run the computation

0 commit comments

Comments
 (0)