Movatterモバイル変換


[0]ホーム

URL:


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

Commitef633e5

Browse files
Sync-up parameter name in equivalent code snippet ofenumerate (GH-101029)
1 parent5134ef4 commitef633e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎Doc/library/functions.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,9 +505,9 @@ are always available. They are listed here in alphabetical order.
505505

506506
Equivalent to::
507507

508-
def enumerate(sequence, start=0):
508+
def enumerate(iterable, start=0):
509509
n = start
510-
for elem insequence:
510+
for elem initerable:
511511
yield n, elem
512512
n += 1
513513

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp