@jason-mcgowan Thanks for catching this. @brianschubert Thanks for checking for more. Others have done this before, so I am surprised that this one got missed. Maybe just an oversight in the last round.
Other occurrences, limited to triple quoted docstrings, omitting tests, as I was getting too much noise otherwise:
Private:
./Lib/asyncio/base_events.py:"""Prepare the run loop to process events. This method exists so that custom custom event loop subclasses (e.g., event loops that integrate a GUI event loop with Python's event loop) have access to all the loop setup logic. """.
./Lib/asyncio/base_events.py:"""Clean up after an event loop finishes the looping over events. This method exists so that custom custom event loop subclasses (e.g., event loops that integrate a GUI event loop with Python's event loop) have access to all the loop cleanup logic. """
./Lib/idlelib/editor.py:"""Return 2 lines containing block opener and and indent. Either the indent line or both may be None. """
Public:
./Lib/unittest/mock.py:"""assert that the mock was called exactly once and that that call was with the specified arguments."""
Other occurrences, limited to triple quoted docstrings, omitting tests, as I was getting too much noise otherwise:
Private:
./Lib/asyncio/base_events.py:"""Prepare the run loop to process events. This method exists so that custom custom event loop subclasses (e.g., event loops that integrate a GUI event loop with Python's event loop) have access to all the loop setup logic. """.
./Lib/asyncio/base_events.py:"""Clean up after an event loop finishes the looping over events. This method exists so that custom custom event loop subclasses (e.g., event loops that integrate a GUI event loop with Python's event loop) have access to all the loop cleanup logic. """
./Lib/idlelib/editor.py:"""Return 2 lines containing block opener and and indent. Either the indent line or both may be None. """
Public:
./Lib/unittest/mock.py:"""assert that the mock was called exactly once and that that call was with the specified arguments."""
Activity
terryjreedy commented on Jun 25, 2025
Still in main. Preparing PR.
pythongh-135956: Remove duplicate word in _pydatetime docstring
pythongh-135956: Remove duplicate word in _pydatetime docstring
brianschubert commented on Jun 25, 2025
A quick regex search for \b(\w+)\b *\n *\1\b shows that this is the only such case in Lib/ public docstrings
gh-135956: Remove duplicate word in _pydatetime docstring (#135957)
pythongh-135956: Remove duplicate word in _pydatetime docstring (pyth…
pythongh-135956: Remove duplicate word in _pydatetime docstring (pyth…
[3.13] gh-135956: Remove duplicate word in _pydatetime docstring (GH-…
[3.14] gh-135956: Remove duplicate word in _pydatetime docstring (GH-…
terryjreedy commented on Jun 26, 2025
@jason-mcgowan Thanks for catching this. @brianschubert Thanks for checking for more. Others have done this before, so I am surprised that this one got missed. Maybe just an oversight in the last round.
StanFromIreland commented on Jun 26, 2025
Other occurrences, limited to triple quoted docstrings, omitting tests, as I was getting too much noise otherwise:
Private:
Public:
LamentXU123 commented on Jun 26, 2025
Great! May I include this in #135964?
LamentXU123 commented on Jun 28, 2025
Hi, @StanFromIreland friendly pinging here. These typos you've mentioned are still in the main branch, would you like me to open a PR to fix it?
StanFromIreland commented on Jun 28, 2025
You can fix the public one if you wish, though it's not high priority, I'm 0 on the others.
LamentXU123 commented on Jun 28, 2025
Sure! #136067
pythongh-135956: Remove duplicate word in _pydatetime docstring (pyth…
pythongh-135956: Remove duplicate word in _pydatetime docstring (pyth…
pythongh-135956: Remove duplicate word in _pydatetime docstring (pyth…
pythongh-135956: Remove duplicate word in _pydatetime docstring (pyth…
pythongh-135956: Help prevent leaks in test_extra_response_headers_arg