Python 3.13's new REPL is AMAZING
Carberra Carberra
20K subscribers
44,704 views
1.4K

 Published On Aug 26, 2024

Python's REPL (or its interactive shell) has been pretty lacking for a while. Outdated and unintuitive, it proved useful for simple checks, but nothing really that complicated. Thankfully the PSF felt the same, and now Python 3.13 has a new REPL, based on PyPy's! This REPL is massively better than the current one, so I wanted to show it off!

Note: This video uses Python 3.13.0rc1; the REPL is still a little buggy in this version, but I imagine all these bugs will be fixed for the final release.

0:00 - Intro
0:48 - Colourised prompts [1, 2]
1:47 - Commands now work as commands [2]
2:20 - The new clear command [2]
2:43 - Multi-line editing [2]
4:25 - F1 to get to help mode [2]
5:56 - The new history mode on F2 [2]
6:48 - The new paste mode on F3 [2]
8:32 - Some of the (current) bugs [3-4]
9:50 - Outro

[1]    • Python now has COLOURED tracebacks  
[2] https://docs.python.org/3.13/whatsnew...
[3] https://github.com/python/cpython/iss...
[4] https://github.com/python/cpython/iss...



If you want to see more of me, join my Discord server!
  / discord  

I get a lot of people asking, so here's my setup!
• Visual Studio Code:    • My Visual Studio Code setup! (2024)  
• Terminal:    • Make your terminal look AMAZING  
• Desk/recording gear: https://kit.co/Carberra
• PC build: https://uk.pcpartpicker.com/list/TmzGYN

Affiliations (I may earn a commission):
• Codecrafters -- 40% off any plan: https://app.codecrafters.io/join?via=...
• Keeper Password Manager -- 30% off your first year: https://keeper.io/r/EX4FB1C



If you have any questions, don't hesitate to ask in the comments! I'll try and answer as soon as I can, providing someone else hasn't already done so.

#python #coding #howto

show more

Share/Embed