treyhunner, (edited )
@treyhunner@mastodon.social avatar

Python 3.13 beta 1 just landed.

My favorite new feature is the new REPL.

Honestly, this may be my favorite feature since f-strings.

My write up on the differences between old and new REPLs:
https://treyhunner.com/2024/05/my-favorite-python-3-dot-13-feature/

chrysn,
@chrysn@chaos.social avatar

@treyhunner @fohrloop That does look awesome. Any chance those changes will come to python3 -m asyncio as well, or for the latter to just become the default?

treyhunner,
@treyhunner@mastodon.social avatar

@chrysn @fohrloop I imagine someone motivated to make that change would need to do it.

I assume "-m asyncio" makes up a fairly small portion of all REPL usage. That doesn't mean it is unimportant to those who use it of course!

bobmagicii,
@bobmagicii@phpc.social avatar

@treyhunner does it still go "use exit() to exit" when you type exit instead of just doing it? because that is what infuriates me the most about python today.

treyhunner,
@treyhunner@mastodon.social avatar

@bobmagicii when you type "exit" it... Exits! 🎉

bobmagicii,
@bobmagicii@phpc.social avatar

@treyhunner im sold 😅

yaleman,
@yaleman@mastodon.social avatar

@treyhunner That's VERY cool, thanks for showing it!

minkiu,
@minkiu@mastodon.social avatar

@treyhunner has anyone done a feature comparison between this an bpython?

treyhunner,
@treyhunner@mastodon.social avatar

@minkiu The Venn diagram overlap would be a circle within a circle.

Then new REPL isn't meant to replace bpython, ptpython, or IPython. But it does borrow some of my favorite features.

minkiu,
@minkiu@mastodon.social avatar

@treyhunner nice, explains it even better. Although wonder if more features will start creeping in heh

  • All
  • Subscribed
  • Moderated
  • Favorites
  • python
  • Durango
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • tacticalgear
  • khanakhh
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • everett
  • ngwrru68w68
  • kavyap
  • InstantRegret
  • JUstTest
  • cubers
  • GTA5RPClips
  • cisconetworking
  • ethstaker
  • osvaldo12
  • modclub
  • normalnudes
  • provamag3
  • tester
  • anitta
  • Leos
  • megavids
  • lostlight
  • All magazines