Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
pnutzh4x0r@lemmy.ndlug.org to Python@programming.devEnglish · 2 years ago

Python 3.12.0

www.python.org

external-link
message-square
13
fedilink
  • cross-posted to:
  • programming@programming.dev
102
external-link

Python 3.12.0

www.python.org

pnutzh4x0r@lemmy.ndlug.org to Python@programming.devEnglish · 2 years ago
message-square
13
fedilink
  • cross-posted to:
  • programming@programming.dev
Python Release Python 3.12.0
www.python.org
external-link
The official home of the Python Programming Language
alert-triangle
You must log in or register to comment.
  • lud@lemm.ee
    link
    fedilink
    arrow-up
    12
    ·
    2 years ago

    itertools.batched() is pretty neat.

  • Pyro@programming.dev
    link
    fedilink
    arrow-up
    11
    ·
    2 years ago

    https://docs.python.org/3.12/whatsnew/3.12.html

  • henfredemars@infosec.pub
    link
    fedilink
    English
    arrow-up
    6
    ·
    2 years ago

    This update just makes me thirstier for the next level optimizer currently in work. I think it’s supposed to come out with 3.13.

  • ComplexLotus@lemmy.world
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    2 years ago

    How do you guys update python versions and all the libraries you have installed? I have multiple like

    • pygame
    • ptpython
    • pandas
    • Pillow
    • icecream
    • … is it not a massive hassle to have to reinstall all of this with every new version and fight the old version on ubuntu?
    • monkey@lemmy.world
      link
      fedilink
      arrow-up
      20
      ·
      2 years ago

      Pyenv! Let the OS have its own version and work on whatever version you want, whenever.

      • Scribbd@feddit.nl
        link
        fedilink
        arrow-up
        6
        ·
        edit-2
        2 years ago

        Also pipx for cli tools. It creates isolated environments for every tool you install. And upgrading is one command away pipx reinstall-all --python (your pyenv).

    • ENipo@lemmy.world
      link
      fedilink
      arrow-up
      7
      ·
      2 years ago

      You are 100% right, that’s why we use virtual environments. Specifically we use poetry, which is fine.

    • Doccool@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      2 years ago

      Conda is, to the alternative already mentioned, a great way to keep different versions of python and it’s packages for each project!

    • coffeewithalex@lemmy.world
      link
      fedilink
      arrow-up
      4
      arrow-down
      2
      ·
      2 years ago

      On Linux, I’d just build my own Python binaries and make them available. But you can also use pyenv for the same thing if you’re ok with it.

      Then, using poetry, I have different projects with isolated environments.

    • sebsch@discuss.tchncs.de
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      The deadsnakes ppa is quite awesome

  • quinkin@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    PEP 688 sounds useful. Might have to have a play.

    • Sigmatics@lemmy.ca
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      https://docs.python.org/3.12/whatsnew/3.12.html#whatsnew312-pep688

  • sugar_in_your_tea@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    This broke Pytest for us, not sure if it’s an us problem, pytest problem, or Python 3.12 problem. Basically, it uses a ton of RAM until it gets killed by the OOM (I’m running in a Docker container w/ 3GB max RAM limit).

    I’ll post back when I get it working, but that’s blocking our upgrade for now. Will probably revisit in a couple months after we get some projects shipped so we don’t fall too far behind.

Python@programming.dev

python@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !python@programming.dev

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

📅 Events
Past

November 2023

  • PyCon Ireland 2023, 11-12th
  • PyData Tel Aviv 2023 14th

October 2023

  • PyConES Canarias 2023, 6-8th
  • DjangoCon US 2023, 16-20th (!django 💬)

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:
  • pyvideo
  • Awesome Python
  • PyCon US 2023 and videos!
🌌 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
  • Active c/Python posts
  • New c/Python posts
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 35 users / day
  • 108 users / week
  • 384 users / month
  • 1.17K users / 6 months
  • 1 local subscriber
  • 7.08K subscribers
  • 417 Posts
  • 2.29K Comments
  • Modlog
  • mods:
  • Jason Novinger@programming.dev
  • Erlingur@programming.dev
  • Luis Norambuena@programming.dev
  • UI: unknown version
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org