https://github.com/python/cpython/commit/16ede813ebad81e41874f1c0a1b3c83fc98a38ca
commit: 16ede813ebad81e41874f1c0a1b3c83fc98a38ca
branch: main
author: Sergio López Gómez <[email protected]>
committer: ZeroIntensity <[email protected]>
date: 2026-06-08T05:39:03-04:00
summary:
Docs: Fix missing colon in `bisect` example function (GH-151061)
files:
M Doc/library/bisect.rst
diff --git a/Doc/library/bisect.rst b/Doc/library/bisect.rst
index 84c009907ed9a3c..39ab75c0904df9c 100644
--- a/Doc/library/bisect.rst
+++ b/Doc/library/bisect.rst
@@ -200,7 +200,7 @@ example uses :py:func:`~bisect.bisect` to look up a letter
grade for an exam sco
based on a set of ordered numeric breakpoints: 90 and up is an 'A', 80 to 89 is
a 'B', and so on::
- >>> def grade(score)
+ >>> def grade(score):
... i = bisect([60, 70, 80, 90], score)
... return "FDCBA"[i]
...
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]