Python 3.13's new REPL is AMAZING

Published: 26 August 2024
on channel: Carberra
63,656
1.8k

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


Watch video Python 3.13's new REPL is AMAZING online, duration hours minute second in high quality that is uploaded to the channel Carberra 26 August 2024. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 63,656 times and liked it 1.8 thousand visitors.