Skip to content

Conversation

@StanFromIreland
Copy link
Member

@StanFromIreland StanFromIreland commented Sep 14, 2025

@StanFromIreland StanFromIreland marked this pull request as ready for review September 15, 2025 06:53
@ambv
Copy link
Contributor

ambv commented Sep 16, 2025

Great idea, love it. In fact, you can use the pager always since it's deliberately a rather independent part of PyREPL. pydoc is using it, too (the code was moved from there originally)

@picnixz
Copy link
Member

picnixz commented Sep 16, 2025

In fact, you can use the pager always since it's deliberately a rather independent part of PyREPL

Would it be possible to isolate it outside _pyrepl? (would it also make sense?) Since we have _colorize for colorization support, _pypager.py would make sense (I would suggest the _py prefix to be sure we don't shadow _pager.py modules from users)

@ambv
Copy link
Contributor

ambv commented Sep 16, 2025

Would it be possible to isolate it outside _pyrepl?

Yes, I moved it out of pydoc mostly to be able to type-annotate it, change the API a bit, and make it fully independent of pydoc. I didn't want to make up a top-level module name at the time, but if it makes sense, we can do that.

@StanFromIreland
Copy link
Member Author

Thanks!

@StanFromIreland
Copy link
Member Author

Friendly ping @ambv :-)

@StanFromIreland StanFromIreland requested a review from ambv November 24, 2025 21:12
@ambv ambv added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes labels Jan 2, 2026
@ambv ambv merged commit 0417dab into python:main Jan 2, 2026
49 checks passed
@miss-islington-app
Copy link

Thanks @StanFromIreland for the PR, and @ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 2, 2026
…thonGH-138898)

(cherry picked from commit 0417dab)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
@bedevere-app
Copy link

bedevere-app bot commented Jan 2, 2026

GH-143364 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 Jan 2, 2026
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 2, 2026
…thonGH-138898)

(cherry picked from commit 0417dab)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
@bedevere-app
Copy link

bedevere-app bot commented Jan 2, 2026

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

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Jan 2, 2026
ambv added a commit that referenced this pull request Jan 2, 2026
…H-138898) (GH-143364)

(cherry picked from commit 0417dab)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
ambv added a commit that referenced this pull request Jan 2, 2026
…H-138898) (GH-143365)

(cherry picked from commit 0417dab)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants