Python 3.13.0RC2, 3.12.6, 3.11.10, 3.10.15, 3.9.20, and 3.8.20 are now available!
(discuss.python.org)
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 07 Sep 2024
40 points (93.5% liked)
Python
6145 readers
5 users here now
Welcome to the Python community on the programming.dev Lemmy instance!
📅 Events
October 2023
- PyConES Canarias 2023, 6-8th
- DjangoCon US 2023, 16-20th (!django 💬)
November 2023
- PyCon Ireland 2023, 11-12th
- PyData Tel Aviv 2023 14th
Past
July 2023
- PyDelhi Meetup, 2nd
- PyCon Israel, 4-5th
- DFW Pythoneers, 6th
- Django Girls Abraka, 6-7th
- SciPy 2023 10-16th, Austin
- IndyPy, 11th
- Leipzig Python User Group, 11th
- Austin Python, 12th
- EuroPython 2023, 17-23rd
- Austin Python: Evening of Coding, 18th
- PyHEP.dev 2023 - "Python in HEP" Developer's Workshop, 25th
August 2023
- PyLadies Dublin, 15th
- EuroSciPy 2023, 14-18th
September 2023
- PyData Amsterdam, 14-16th
- PyCon UK, 22nd - 25th
🐍 Python project:
- Python
- Documentation
- News & Blog
- Python Planet blog aggregator
💓 Python Community:
- #python IRC for general questions
- #python-dev IRC for CPython developers
- PySlackers Slack channel
- Python Discord server
- Python Weekly newsletters
- Mailing lists
- Forum
✨ Python Ecosystem:
🌌 Fediverse
Communities
- #python on Mastodon
- c/django on programming.dev
- c/pythorhead on lemmy.dbzer0.com
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
founded 1 year ago
MODERATORS
Woo! I'm excited to mess w/ 3.13.
I've been pushing to update our Python version, and we went from 3.7 a couple years ago to now being on 3.11 everywhere, and we should get to 3.12 by EOY (and maybe 3.13 if 3.12 goes well). We ran into some weird issues with
pytest
eating up all the RAM in 3.12, but that was nearly a year ago now (hence why we went to 3.11 first), so hopefully we won't have as many roadblocks this time.Huh, I'm going to have to play with this. We have a lot of shared logic between the FE and BE (mostly to support offline mode for our app), and we've had bugs when someone forgot to change both. So I'm interested in trying this out for shared business logic and small computations.
On this, anyone know of any projects that can turn a pip-installable package into a WASM module? Ideally, it would fit in our existing FE build pipeline so I could just import it as an ES6 module and the pipeline would generate the file as needed. I'll certainly look into it when the time comes, just wondering if anyone has already used it.
I'm most excited about the new REPL. I'm going to push for 3.13 upgrade as soon as we can (hipefully early next year). I've messed around with rc1 and the REPL is great.
Do you know why pytest was taking up so much RAM? We are also on 3.11 and I'm probably going to wait until 3.13 is useable for us.
We looked into it a bit, and it seems it's not freeing test case instance data (this bug, and some related bugs). We use
unittest
-style tests, but use pytest as a runner, and our test suite is all kinds of bloated. Basically, a typical test looks like this:My best guess is that
FIXTURES
(and anything on the TestCase) is being kept in memory, and we do this everywhere.Our plan is to separate our service layer from our db layer, which will dramatically reduce memory in these test case instances (we're doing it anyway for other reasons). At the same time, we are considering porting to pytest-style tests, which will give us an opportunity to rearchitect how we handle fixtures. Some of our repos have already switched, but our larger repos haven't.
That said, this is pretty old information. We ran into these issues around the end of last year, and haven't looked at it since, but will in the next couple of months (we do Python upgrades around year end). It's possible it is already fixed, either in Python or pytest (bug is still open, but no activity for a year).
Anyway, if you run into weird memory issues when running tests w/ Python >=3.12, this might be the culprit.
Thanks for sharing. We use all pytest-style tests using pytest fixtures. I'll keep my eyes open for memory issues when we test upgrading to python 3.12+.
Very helpful info!