Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-111201: A new Python REPL#111567

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ambv merged 88 commits intopython:mainfrompablogsal:pyrepl
May 5, 2024
Merged
Changes from1 commit
Commits
Show all changes
88 commits
Select commitHold shift + click to select a range
2bf1505
gh-111201: A new Python REPL
pablogsalOct 20, 2023
35d322e
Clean some files
pablogsalApr 27, 2024
4d2303b
Fix history across sessions
pablogsalApr 27, 2024
7763c05
Fore fixes to history
pablogsalApr 27, 2024
e85d873
Lukasz was wrong all along
pablogsalApr 27, 2024
842496e
Implement REPL commands and remove F1 for help (curses shows that scr…
pablogsalApr 27, 2024
1417b9b
Restore F1 for help
pablogsalApr 27, 2024
4c69853
Implement colored prompt
pablogsalApr 27, 2024
359407b
WIP for paste mode
pablogsalApr 27, 2024
85a2b35
Only execute PYTHONSTARTUP when asked (we do it in main.c anyway)
ambvApr 27, 2024
05a8831
Fixed coloring
pablogsalApr 27, 2024
c074ca6
Do not run commands if they are shadowed
pablogsalApr 27, 2024
9584b5b
Move pager routines to _pyrepl, so we can use it in the REPL without …
ambvApr 27, 2024
d7ddebd
Don't assume stupid paths or you will be tested against your stupid a…
ambvApr 27, 2024
2d24cd2
<F2> shows history so you can copy it, <F3> is paste mode
ambvApr 27, 2024
fe1b3ac
Do not include REPL commands in history
pablogsalApr 27, 2024
e1abd39
Add Blurb
ambvApr 27, 2024
afbeaab
Reintroduce old names to fix pydoc tests
ambvApr 27, 2024
aee9fcf
Add some tests
pablogsalApr 28, 2024
77db960
Add moar tests
pablogsalApr 28, 2024
2a64680
Add moar tests
pablogsalApr 28, 2024
5bced59
Cleanup and refactor
pablogsalApr 28, 2024
20533d3
Refactor unix_console.py
pablogsalApr 28, 2024
a07a0ce
Refactor unix_console.py more
pablogsalApr 28, 2024
b8b0e76
Refactor unix_console.py more
pablogsalApr 28, 2024
c570171
Moar tests
pablogsalApr 28, 2024
169043f
Fix test___all__
ambvApr 28, 2024
c613ae3
Fix test_traceback
ambvApr 28, 2024
98fbee2
Fix weird r-search scrambled text due to color codes
pablogsalApr 28, 2024
254aaf2
Fix weird r-search scrambled text due to color codes better
pablogsalApr 28, 2024
cf9bd26
Disgusting fix for help state restoration
pablogsalApr 28, 2024
b064e1f
Test pasting with/without paste mode
mgmacias95Apr 28, 2024
0fa01e0
refactor events
mgmacias95Apr 28, 2024
fa37b07
Merge pull request #71 from mgmacias95/pyrepl
pablogsalApr 28, 2024
a6d54e6
help() uses its own history, doesn't pollute main history
ambvApr 28, 2024
ffbf24b
Add typing to reader.py
ambvApr 29, 2024
6c188fb
Add types to pager.py
ambvApr 29, 2024
7919bae
Add types to input.py, console.pu, and commands.py
ambvApr 29, 2024
2a7e81d
Refactor termios stuff in unix console
lysnikolaouApr 29, 2024
aa9eaf3
Merge pull request #72 from lysnikolaou/pyrepl-refactor-term-unix-con…
pablogsalApr 29, 2024
8c368d0
Revert "Refactor termios stuff in unix console"
pablogsalApr 29, 2024
977e79e
Fix cursor position for double-width characters
lysnikolaouApr 30, 2024
05b1142
Add _pyrepl to installed Lib subdirs
lysnikolaouApr 30, 2024
c56209a
Merge pull request #74 from lysnikolaou/pyrepl-add-module-install
pablogsalApr 30, 2024
bc31d3a
Add tests
lysnikolaouApr 30, 2024
373a8a0
Update Lib/test/test_pyrepl.py
pablogsalApr 30, 2024
e9be872
Merge pull request #73 from lysnikolaou/pyrepl-double-width-char-cursor
pablogsalApr 30, 2024
cba260f
Implement better fallback with PYTHON_OLD_REPL
pablogsalApr 30, 2024
233da02
Cache failures in pyrepl
pablogsalApr 30, 2024
07695f7
Stay at eol when moving up/down
lysnikolaouApr 30, 2024
63dabfd
Fix linter
lysnikolaouApr 30, 2024
162252a
fix early errors
pablogsalApr 30, 2024
970fd85
Fix CI
pablogsalApr 30, 2024
3dcf704
Fix paste mode when there are empty line in the middle
lysnikolaouApr 30, 2024
755728d
Fix disp_str for control characters
lysnikolaouApr 30, 2024
121ce2b
Fix mac CI
pablogsalApr 30, 2024
07345da
Merge pull request #77 from lysnikolaou/pyrepl-fix-disp-str-ctrl
pablogsalApr 30, 2024
e5154d2
Merge pull request #76 from lysnikolaou/pyrepl-paste-mode-newlines-mid
pablogsalApr 30, 2024
390d778
Merge pull request #75 from lysnikolaou/pyrepl-eol-move-up-down
pablogsalApr 30, 2024
ba26254
Various fixes to handle wide characters correctly
lysnikolaouMay 1, 2024
691c75e
Fix vertical navigation with wide characters
lysnikolaouMay 2, 2024
9804074
Write more tests
lysnikolaouMay 2, 2024
8f3e713
Fix backspace in second line
lysnikolaouMay 2, 2024
abe9fd3
Fixes for pos2xy & setpos_from_xy when wrapped line
lysnikolaouMay 3, 2024
4f66170
Fix linter & run black
lysnikolaouMay 3, 2024
4bc36ab
Update Lib/_pyrepl/reader.py
pablogsalMay 3, 2024
1443793
Merge pull request #78 from lysnikolaou/pyrepl-various-fixed-wide-cha…
pablogsalMay 3, 2024
b516831
Add typing to consoles
ambvMay 4, 2024
0d24b9d
Merge branch 'main' into pyrepl
ambvMay 4, 2024
18cd2cf
Work around mypy being unhappy with _colorize
ambvMay 4, 2024
afe2513
Remove duplicate test
ambvMay 4, 2024
864ecb8
Add types to HistoricalReader and CompletingReader
ambvMay 4, 2024
b5f8895
Add typing to readline.py
ambvMay 4, 2024
45537bb
Pin test_pyrepl to the `curses` test resource
ambvMay 4, 2024
22c4d3f
Don't call anything curses in test_repl
pablogsalMay 4, 2024
6a0fcef
Many machines on CI run with -uall; skip the test if curses import fails
ambvMay 4, 2024
b4362b5
Fix refleaks
pablogsalMay 4, 2024
a900ccd
Document PYTHON_BASIC_REPL
ambvMay 4, 2024
13fda4e
Do not call _setup() on import
pablogsalMay 4, 2024
6ebf89c
Document pyrepl
ambvMay 4, 2024
6d3155e
Merge branch 'main' into pyrepl
ambvMay 4, 2024
058bc7f
Apply suggestions from code review
pablogsalMay 5, 2024
7ac9af8
Update Lib/_pyrepl/_minimal_curses.py
pablogsalMay 5, 2024
7422f1c
Use more specific exceptions
pablogsalMay 5, 2024
d2de559
Use better error messages
ambvMay 5, 2024
3053b39
Add to What's New
ambvMay 5, 2024
149658b
Forgot the PyPy attribution in "What's New"
ambvMay 5, 2024
be2a0c9
let's never talk about this
ambvMay 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Add to What's New
  • Loading branch information
@ambv
ambv committedMay 5, 2024
commit3053b39e6b0274c354c3f56338dba1a5f9abef8a
28 changes: 28 additions & 0 deletionsDoc/whatsnew/3.13.rst
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -97,6 +97,34 @@ New typing features:
New Features
============

A Better Interactive Interpreter
--------------------------------

On Unix-like systems like Linux or macOS, Python now uses a new
:term:`interactive` shell. When the user starts the :term:`REPL`
from a tty, and both :mod:`curses` and :mod:`readline` are available,
the interactive shell now supports the following new features:

* colorized prompts;
* multiline editing with history preservation;
* interactive help browsing using :kbd:`F1` with a separate command
history;
* history browsing using :kbd:`F2` that skips output as well as the
:term:`>>>` and :term:`...` prompts;
* "paste mode" with :kbd:`F3` that makes pasting larger blocks of code
easier (press :kbd:`F3` again to return to the regular prompt);
* ability to issue REPL-specific commands like :kbd:`help`, :kbd:`exit`,
and :kbd:`quit` without the need to use call parentheses after the
command name.

If the new interactive shell is not desired, it can be disabled via
the :envvar:`PYTHON_BASIC_REPL` environment variable.

For more on interactive mode, see :ref:`tut-interac`.

(Contributed by Pablo Galindo Galgado, Łukasz Langa, and
Lysandros Nikolaou in :gh:`111201`.)

Improved Error Messages
-----------------------

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp