Skip to content

gh-102967: Don't pass None to seek(), simply truncate from the current position. - #102968

Merged
serhiy-storchaka merged 16 commits into
python:mainfrom
aaron-fl:issue-102967
Aug 13, 2026
Merged

serhiy-storchaka merged 16 commits into
python:mainfrom
aaron-fl:issue-102967

Conversation

@aaron-fl

Copy link
Copy Markdown
Contributor

gh-102967: Don't pass None to seek(), simply truncate from the current position.

@bedevere-bot

Copy link
Copy Markdown

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

@ghost

ghost commented Mar 23, 2023 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.
CLA signed

@arhadthedev arhadthedev added the tests Tests in the Lib/test dir label Mar 23, 2023
@AlexWaygood AlexWaygood added stdlib Standard Library Python modules in the Lib/ directory and removed tests Tests in the Lib/test dir labels Mar 23, 2023
@aaron-fl

Copy link
Copy Markdown
Contributor Author

Although, as I look at it more. Why would we want the behavior of _SpoofOut.truncate() to differ from the standard implementation? IMO the whole method should be removed. But that might break more things.

@python-cla-bot

python-cla-bot Bot commented Apr 18, 2025 •

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Apr 12, 2026
@github-actions github-actions Bot removed the stale Stale PR or inactive for long period of time. label Aug 12, 2026
Comment thread Lib/doctest.py Resolved
@serhiy-storchaka serhiy-storchaka added needs backport to 3.13 only security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 bugs and security fixes labels Aug 13, 2026
@serhiy-storchaka
serhiy-storchaka merged commit 7586115 into python:main Aug 13, 2026
47 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @aaron-fl for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15.
🐍🍒⛏🤖

@bedevere-app

bedevere-app Bot commented Aug 13, 2026

Copy link
Copy Markdown

GH-155664 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 bugs and security fixes label Aug 13, 2026
@bedevere-app

bedevere-app Bot commented Aug 13, 2026

Copy link
Copy Markdown

GH-155665 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Aug 13, 2026
@bedevere-app

bedevere-app Bot commented Aug 13, 2026

Copy link
Copy Markdown

GH-155666 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 only security fixes label Aug 13, 2026
serhiy-storchaka pushed a commit that referenced this pull request Aug 13, 2026
… current position (GH-102968) (GH-155666)

(cherry picked from commit 7586115)

Co-authored-by: aaron-fl <[email protected]>
serhiy-storchaka pushed a commit that referenced this pull request Aug 13, 2026
… current position (GH-102968) (GH-155665)

(cherry picked from commit 7586115)

Co-authored-by: aaron-fl <[email protected]>
mbeijen pushed a commit to mbeijen/cpython that referenced this pull request Aug 14, 2026
serhiy-storchaka pushed a commit that referenced this pull request Oct 10, 2026
… current position (GH-102968) (GH-155664)

(cherry picked from commit 7586115)

Co-authored-by: aaron-fl <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stdlib Standard Library Python modules in the Lib/ directory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants