1 point

Docstrings now have their leading indentation stripped

I foolish thought that it meant that finally python introduced a hassle free simple way to have indented triple-quoted literal strings. But no. It baffles me that you cannot have simple literal strings that are indented. This is specially annoying if you are using them as templates to output multiline text.

permalink
report
reply
1 point

So I remember the plan to improve Python’s speed from 3.9 to 3.13… Has there been an updated plan since? I presume the JIT will likely be faster in 3.14 (it’;s already at parity - pretty impressive for a first release), but is there anything else planned?

permalink
report
reply
8 points

Woo!

We’re still on 3.11, but it’s been some time since I last checked compatibility with the later releases. Good job everyone, I’m going to be playing with this over the next couple weeks to see if we can upgrade to it.

permalink
report
reply
15 points

Now only have to wait for:

  • pyenv release
  • pycharm update (including terminal)
  • 3rd party libraries

to catch up…

permalink
report
reply
6 points

Once that happens it’ll be just couple of years until trickles down to corpo I work at :(

We got Python 3.10 in our Hadoop/Spark setup recently. I’m really enjoying those improved debug messages, man.

permalink
report
parent
reply
2 points
*

Protip: pip install pyupgrade And then find . -name '*.py' -not -path '*.tox*' -print0 | xargs -0 pyupgrade --py310-plus in your repo to update what can be updated.

BTW, pyupgrade’s creator, asottile (that’s his name) also has an informative channel: Anthony Writes Code where he explains Python features, or goes into interesting bugs he ran into, etc. The good stuff.

permalink
report
parent
reply
2 points
*

You assume that I can access PIP on a big data cluster in a financial institution ;) Even updating packages there requires me to ask for a custom image. I’m a data analyst so I just transform and extract what I can in a way that reduces size of the output and do cool stuff on my machine that has Python 3.11 and access to validated PyPI mirror. ETL that happens entirely on the cluster needs to be so optimised that I don’t need anything fancy thankfully.

permalink
report
parent
reply
2 points

Wait how does one make enough money to afford the JetBrains suite? I just do everything in VSCode.

permalink
report
parent
reply
6 points

I know some people who have their work pay for it. I pay for the all products pack and it decreases in cost each year until a certain point. Not sure if I’m on some extra discount or whatnot but I only pay $18/mo and it’s easily worth it.

permalink
report
parent
reply
1 point

Is that on your personal machine, though?

permalink
report
parent
reply
2 points

Oh if only I could get my work to pay for it. Unfortunately, I’m in a megacorp that would shove said request so far down into bureaucracy hell…

permalink
report
parent
reply
4 points

I use and enjoy VS codium as well, but PyCharm has a community edition that is free.

permalink
report
parent
reply
1 point

VSCodium doesn’t have the Python plugin, does it? It also misses the config sync when you’re logged in (IIRC). Not the worst to miss if you start out, but I’ll take it over having to track EVERYTHING in my code-workspace file.

permalink
report
parent
reply
0 points

Ah

permalink
report
parent
reply
16 points

Wow, they (apparently) finally made the REPL not suck! I always thought it was weird how shit it was given that it’s one of the big reasons Python has become as popular as it is.

Maybe in another 20 years they can make the package tooling not suck too.

permalink
report
reply
4 points

Tbf, uv is trying to solve packaging now

permalink
report
parent
reply
3 points

Yeah it’s definitely a vast improvement on previous attempts (Poetry et al).

I dunno if it can be called solved until it’s officially sanctioned and installed by default though, and I don’t see that happening for a very long time.

permalink
report
parent
reply
1 point

How is it better than poetry?

permalink
report
parent
reply
2 points

Maybe because people who needed it knew there were better ways to do it, like ipython and Jupyter. I’ve never heard of anyone gushing about the stock REPL.

permalink
report
parent
reply
8 points

poetry has made the package tooling generally not suck for me, and uv seems to be getting better. Just a few more PEPs to go until uv does what I want. Here’s hoping.

permalink
report
parent
reply
0 points

Poetry is frigging great.
Never heard of uv.

permalink
report
parent
reply
3 points

uv is basically a super fast Python tool, written in Rust. Looks promising, but it seems to be missing some features I really like from Poetry, but I’m keeping my eye on it.

permalink
report
parent
reply
3 points

The Python REPL was always sort of minimal when used from the command line, but is quite usable in an Emacs window. IDLE is also useful some of the time. I never felt the need for anything like Eclipse because of it.

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