hugovk, to python
@hugovk@mastodon.social avatar

🐍🧪 Python 3.13.0 is due out in October 2024 and work is underway to implement experimental support for PEP 703 "Making the Global Interpreter Lock Optional in CPython".

As the Steering Council noted in their acceptance of the PEP, to succeed it's important to have community support.

I wrote a little guide on how you can help test out the beta in your project, and help us find bugs in CPython:

https://dev.to/hugovk/help-us-test-free-threaded-python-without-the-gil-1hgf
#python #CPython #python313 #PEP703 #FreeThreaded
#JustDontCallItNoGIL

fohrloop, to python
@fohrloop@fosstodon.org avatar

The new python 3.13 REPL looks so useful that I might be able to switch from IPython to it entirely!

https://treyhunner.com/2024/05/my-favorite-python-3-dot-13-feature/

hugovk, to python
@hugovk@mastodon.social avatar

🎲 Do you like Python's little CLIs? For example:

$ python -m http.server
$ python -m webbrowser example_url
$ python -m uuid
$ python -m calendar

What about adding one to random?

$ python -m random curry "fish n chips" tacos
curry

$ python -m random 6
6

$ python -m random 2.5
1.6423361547011504

Give your feedback on my proposal at
https://discuss.python.org/t/command-line-interface-for-the-random-module/51304

If there's support we might be able to get it into 3.13 before May's beta cutoff! 🤞

foosel, to random
@foosel@chaos.social avatar

@pythonbytes I'm just in the process of catching up with my backlog and in number 378 you talked a bit about time.monotonic.

At EuroPython 2021 I gave a quick lightning talk of its behaviour vs time.perf_counter and found some fun resolution and performance differences on windows.

tldr: if you are platform agnostic/target windows and need a very high clock resolution, look at time.perf_counter instead.

https://github.com/foosel/ep2021lt/blob/main/presentation.md

hugovk,
@hugovk@mastodon.social avatar

@foosel @pythonbytes Good news! @vstinner has improved it for Python 3.13:

"On Windows, time.monotonic() now uses the QueryPerformanceCounter() clock to have a resolution better than 1 us, instead of the GetTickCount64() clock which has a resolution of 15.6 ms."

https://docs.python.org/3.13/whatsnew/3.13.html#time
#Python #Python313 #time #windows

hugovk, to python
@hugovk@mastodon.social avatar

Python 3.11.9 is out!

This is the last bugfix release, from now on it will only receive security fixes.

More info and find out what a "kugelblitz" is: https://discuss.python.org/t/python-3-11-9-is-available/50502

hugovk,
@hugovk@mastodon.social avatar
hugovk, to python
@hugovk@mastodon.social avatar
paulox, to python
@paulox@fosstodon.org avatar

RT @gvanrossum

Talk by my coworker (and co core dev) Brandt Bucher on how we plan a JIT for Python 3.13.

https://youtu.be/HxSHIpEQRjs?feature=shared

hugovk, to python
@hugovk@mastodon.social avatar

In 2019-2021, here's how long it took CI services to support the newest Python release:

2019: Python 3.8

🥇 21 hours: Travis CI
🥈 20 days: @github Actions
🥉 24 days: Azure Pipelines
4️⃣ 25 days: AppVeyor

2020: Python 3.9

🥇 17 hours: @github Actions ⬆️
🥈 20 days: Travis CI ⬇️
🥉 21 days: AppVeyor ⬆️
4️⃣ 22 days: Azure Pipelines ⬇️

2021: Python 3.10

🥇 12 hours: @github Actions ↔️
🥈 17 days: Azure Pipelines ⬆️
🥉 28 days: AppVeyor ↔️
4️⃣ 106 days: Travis CI ⬇️

hugovk,
@hugovk@mastodon.social avatar

And the last two releases saw GHA/AP improve their lead:

2022: Python 3.11

🥇 a day: @github Actions ↔️
🥈 2 days: Azure Pipelines ↔️
🥉 14 days: AppVeyor ↔️
4️⃣ 28 days: Travis CI ↔️

2023: Python 3.12

🥇 13 hours: @github Actions ↔️
🥇 13 hours: Azure Pipelines ↔️
🥉 20 days: Travis CI ⬆️
4️⃣ 28 days: AppVeyor ⬇️

And GitHub Actions already has 3.13 alpha available!

hugovk, to python
@hugovk@mastodon.social avatar

It's the annual Python core developer sprint, this year kindly hosted by @encukou and Red Hat in Brno, Czechia -- thank you!

The first of (at least!) three PEPs being authored this week is by @freakboy3742 and targeting Python 3.13:

PEP 730 – Adding iOS as a supported platform

https://peps.python.org/pep-0730/

Discussions:

https://discuss.python.org/t/pep-730-adding-ios-as-a-supported-platform/35854?u=hugovk

hugovk,
@hugovk@mastodon.social avatar

Just published:

"A JIT Compiler for CPython"

Brandt Bucher's talk from the core dev sprint, on plans to include a just-in-time compiler in Python 3.13.

https://youtu.be/HxSHIpEQRjs?si=Y1aPKDlf3mM0JX2N

#Python #Python313 #CoreDevSprint #JIT

hugovk, to python
@hugovk@mastodon.social avatar

I've released pepotron 1.0.0 with the new Python 3.13 schedule!

$ python -m pip install pepotron
...

Use it to open PEPs in your browser:

$ pep 8
https://peps.python.org/pep-0008/

Or the release schedule for a Python version:

$ pep 3.13
https://peps.python.org/pep-0719/

Or word search:

$ pep dead batteries
Score Result
90 PEP 594: Removing dead batteries from the standard library
55 PEP 288: Generators Attributes and Exceptions
...

https://github.com/hugovk/pepotron

  • All
  • Subscribed
  • Moderated
  • Favorites
  • provamag3
  • rosin
  • thenastyranch
  • Durango
  • DreamBathrooms
  • ngwrru68w68
  • magazineikmin
  • cubers
  • Youngstown
  • mdbf
  • slotface
  • osvaldo12
  • GTA5RPClips
  • kavyap
  • megavids
  • InstantRegret
  • everett
  • tacticalgear
  • vwfavf
  • tester
  • normalnudes
  • modclub
  • ethstaker
  • khanakhh
  • cisconetworking
  • anitta
  • Leos
  • JUstTest
  • All magazines