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-140287: HandlePYTHONSTARTUP script exceptions in the asyncio REPL#140288

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

Draft
johnslavik wants to merge33 commits intopython:main
base:main
Choose a base branch
Loading
fromjohnslavik:asyncio-repl-handle-python-startup
Draft
Changes from1 commit
Commits
Show all changes
33 commits
Select commitHold shift + click to select a range
faa22f4
Handle `PYTHONSTARTUP` script exceptions
johnslavikOct 18, 2025
5b3ad2c
Add blurb
johnslavikOct 18, 2025
00edac4
Use `console.showtraceback()` instead of `sys.excepthook()`
johnslavikOct 18, 2025
e396622
Properly run asyncio REPL in REPL tests
johnslavikOct 18, 2025
4079074
Move comment to a better place
johnslavikOct 18, 2025
0440d0e
Add tests
johnslavikOct 23, 2025
af6f657
Merge branch 'properly-run-asyncio-repl-in-repl-tests' into asyncio-r…
johnslavikOct 23, 2025
848638d
Merge branch 'main' into asyncio-repl-handle-python-startup
johnslavikOct 24, 2025
d158dbf
Improve test structure
johnslavikOct 27, 2025
9355da7
Use `SHORT_TIMEOUT`
johnslavikOct 27, 2025
3dc4cac
Revert "Use `SHORT_TIMEOUT`"
johnslavikOct 27, 2025
c786584
Force no colorization
johnslavikOct 27, 2025
b76db67
Linecache doesn't matter and shouldn't break tests
johnslavikOct 28, 2025
cad1748
Don't rely on line numbering on Windows...
johnslavikOct 29, 2025
d114ed5
Different names
johnslavikOct 29, 2025
e6e10ad
Idiomatize and simplify
johnslavikOct 29, 2025
ac6cd83
Merge branch 'main' into asyncio-repl-handle-python-startup
johnslavikOct 30, 2025
149740a
Purifying `sys.path` is implied by `-P`
johnslavikOct 30, 2025
bffac1c
Merge branch 'main' into asyncio-repl-handle-python-startup
johnslavikNov 7, 2025
a4c307e
Separate tests for regular and asyncio REPL
johnslavikNov 8, 2025
a774da5
Remove duplicate assertion
johnslavikNov 8, 2025
b3ed3d4
Document `new_startup_env`
johnslavikNov 8, 2025
df6dfd8
Fix `new_startup_env` docs
johnslavikNov 8, 2025
b004839
More meaningful line breaks
johnslavikNov 8, 2025
ce03cce
Better variables
johnslavikNov 8, 2025
9e92510
Use default histfile
johnslavikNov 8, 2025
0a50a50
Fix newline
johnslavikNov 8, 2025
f8b8d53
Use `TestCase.enterContext`
johnslavikNov 8, 2025
5701fef
Remove lines with ps1
johnslavikNov 8, 2025
393aaad
Merge branch 'main' into asyncio-repl-handle-python-startup
johnslavikDec 16, 2025
875fd2a
Employ `asyncio.Runner` in the asyncio REPL
johnslavikDec 16, 2025
4377d82
Revert "Employ `asyncio.Runner` in the asyncio REPL"
johnslavikDec 16, 2025
c4e488e
Merge branch 'main' into asyncio-repl-handle-python-startup
johnslavikDec 18, 2025
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
Useconsole.showtraceback() instead ofsys.excepthook()
  • Loading branch information
@johnslavik
johnslavik committedOct 18, 2025
commit00edac497a68ed538bf9468a8ffab061fe85156f
2 changes: 1 addition & 1 deletionLib/asyncio/__main__.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -106,7 +106,7 @@ def run(self):
except SystemExit:
raise
except BaseException:
sys.excepthook(*sys.exc_info())
console.showtraceback()

ps1 = getattr(sys, "ps1", ">>> ")
if CAN_USE_PYREPL:
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp