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

Appearance settings

Commit e7c182d

Browse filesBrowse files
authored
Merge pull request fluentpython#45 from tudor38/fix-spelling
fix spelling
2 parents 28d6d03 + 567f352 commit e7c182d
Copy full SHA for e7c182d

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎17-it-generator/columnize_iter.py

Copy file name to clipboardExpand all lines: 17-it-generator/columnize_iter.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ def columnize(
66
) -> Iterator[tuple[str, ...]]: # <1>
77
if num_columns == 0:
88
num_columns = round(len(sequence) ** 0.5)
9-
num_rows, reminder = divmod(len(sequence), num_columns)
10-
num_rows += bool(reminder)
9+
num_rows, remainder = divmod(len(sequence), num_columns)
10+
num_rows += bool(remainder)
1111
return (tuple(sequence[i::num_rows]) for i in range(num_rows)) # <2>
1212
# end::COLUMNIZE[]
1313

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.