Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Make the first argument positional-only
  • Loading branch information
ambv committed Apr 7, 2026
commit 38db42282e52b46c8c59753e3fa322d04999bc12
2 changes: 1 addition & 1 deletion Lib/_py_grapheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def _grapheme_break(prev_gcb, curr_gcb, ep_state, ri_flag, incb_state):
return True


def iter_graphemes(string, start=0, end=sys.maxsize):
def iter_graphemes(string, /, start=0, end=sys.maxsize):
"""Iterate over grapheme clusters in a string.

Uses extended grapheme cluster rules from TR29.
Expand Down