You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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 commentedon 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 commentedon Jun 25, 2025
A quick regex search for
\b(\w+)\b *\n *\1\bshows that this is the only such case inLib/public docstringsgh-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 commentedon 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 commentedon Jun 26, 2025
Other occurrences, limited to triple quoted docstrings, omitting tests, as I was getting too much noise otherwise:
Private:
Public:
LamentXU123 commentedon Jun 26, 2025
Great! May I include this in #135964?
LamentXU123 commentedon 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 commentedon 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 commentedon 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