this post was submitted on 07 Oct 2024
100 points (100.0% liked)

Python

6281 readers
96 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

๐Ÿ“… Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

๐Ÿ Python project:
๐Ÿ’“ Python Community:
โœจ Python Ecosystem:
๐ŸŒŒ Fediverse
Communities
Projects
Feeds

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] gigachad@sh.itjust.works 14 points 1 week ago (1 children)

Nice I guess it's time to check if my daily used libraries have stable 3.12 releases already.

I guess the free-threaded mode and the JIT compiler will be the most important features from what I read, but their significance is out of my expertise.

My absolute favorite with this update is the new REPL! It features Multiline-editing and a paste mode for easier pasting code. It also added the spaces automatically in my example.

Sometimes I want to make some quick tests on some data in the terminal without installing IPython to my environment first, this is great news!

This new error message will also be very useful for beginners and relieve StackOverflow:

AttributeError: module 'numpy' has no attribute 'array' (consider renaming '/home/me/numpy.py' if it has the same name as a third-party module you intended to import)

[โ€“] mamg22@sh.itjust.works 3 points 1 week ago

That last one is going to be so good. Months ago I ran into that while porting the "Crafting Interpreters" java-based interpreter into python. It took me a few hours to figure out that one of my modules was colliding with "token" in the stdlib, a module I didn't even know existed. Glad it's being made clearer.