You are viewing a single thread.
View all comments
14 points

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)

permalink
report
reply
3 points

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.

permalink
report
parent
reply

Python

!python@programming.dev

Create post

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

📅 Events
Past

November 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
💓 Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
  • Pythörhead: a Python library for interacting with Lemmy
  • Plemmy: a Python package for accessing the Lemmy API
  • pylemmy pylemmy enables simple access to Lemmy’s API with Python
  • mastodon.py, a Python wrapper for the Mastodon API
Feeds

Community stats

  • 744

    Monthly active users

  • 168

    Posts

  • 707

    Comments