treyhunner, to python
@treyhunner@mastodon.social avatar

Today I'm wondering how I could get the new Python 3.13 REPL working in WebAssembly in the browser. 🤔

xterm-pty for xterm.js looks possibly helpful, but I'm unsure how to use it: https://github.com/mame/xterm-pty

I'm also wondering what CPython will need to be configured in its environment to properly trigger the new REPL.

I'm a TTY novice and definitely feel in over my head with this train of thought. 😅

emocoder, to python
@emocoder@hachyderm.io avatar

While I'm still inspired after #PyConUs I'm doing stuff. Are there any good guides on how to contribute to #Python stdlib? Maybe #CPython itself?

cmaureir, to cpp
@cmaureir@mastodon.social avatar

Wanna join the development team in charge of the official Python bindings for the Qt Framework? 🐍

We have an opening for the Qt for Python team, which is currently developing PySide and Shiboken! 💻

If you know C++, Python, and perhaps a bit of CPython internals,

Join us! https://www.qt.io/open-positions/python-and-c-software-engineer-all-levels

#pyside #qt #shiboken #qtforpython #cpython #cpp #python

dongheena, to python
@dongheena@fosstodon.org avatar

The team from Quansight-Labs
is writing the migration guide for the free-threading CPython while they are working on a bunch of scientific libraries (e.g numpy)
IMO, it is worth taking a look at.
https://github.com/Quansight-Labs/free-threaded-compatibility
#Python #CPython

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

hugovk,
@hugovk@mastodon.social avatar

🐍🧪 Python 3.13 beta 2 is out!

https://discuss.python.org/t/3-13-0b2-now-available/55056

The macOS installer joins the Windows installer in adding an option to install free-threaded binaries as python3.13t, making it even easier to try it out.

See https://github.com/python/cpython/issues/120098 for all the details, and https://dev.to/hugovk/help-us-test-free-threaded-python-without-the-gil-1hgf for an overview.

#python #CPython #python313 #PEP703 #FreeThreaded
#JustDontCallItNoGIL #macOS

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

It's always fun to see the layers of history when looking at the Git blame of CPython.

Here's an Initial revision from 34 years ago, and GIL removal from 3 months ago.

https://github.com/python/cpython/commit/a3af3cb4f424034b56404704fdf8f18e8c0a9982 #Python #CPython #Git #GitBlame #history

danzin, to python
@danzin@mastodon.social avatar

help needed.

I have an open PR to , adding support for dict views (those you get from e.g. dict.items(), plus ABC mapping views) to pprint.

Problem is, this is an old PR that has seen a lot of churn as I better grokked the original code and ways to simplify my own. It has taken a fair bit of review time by core devs. So I'd like to have more eyes checking it before I ask for another core dev review.

Could you take a look and offer any suggestions?

https://github.com/python/cpython/pull/30135/files

mgorny, to python Polish
@mgorny@pol.social avatar

2024-03-19, ogłoszono dwie dziury bezpieczeństwa na liście mailingowej, poświęconej problemom bezpieczeństwa Pythona: "quoted zip-bomb" i "TemporaryDirectory symlink dereference during cleanup". Obie miały dotykać wszystkich aktualnych wydań CPythona.

Tego samego dnia, wydano nowe wersje Pythona 3.10, 3.9 i 3.8. Co ciekawe, nie było wydań dla 3.11 i 3.12.

2024-04-02, w końcu otagowano Pythona 3.11.9. Początkowo, podpis dla archiwum się nie sprawdzał. Dziś już jest OK, ale wydania dalej nie ogłoszono. Co jednak najbardziej mnie zaskoczyło, to brak poprawek dla dwóch ogłoszonych wcześniej problemów! Czyżby nieudane wydanie?

Przyjrzałem się sprawie bliżej… i okazało się, że oba problemy były już poprawione w poprzednim wydaniu 3.11.8 (i 3.12.2), więc ogłoszenie było błędne. Wzdych.

Niestety, nadal jest dotknięte problemem.

https://mail.python.org/archives/list/security-announce@python.org/thread/XELNUX2L3IOHBTFU7RQHCY6OUVEWZ2FG/
https://mail.python.org/archives/list/security-announce@python.org/thread/Q5C6ATFC67K53XFV4KE45325S7NS62LD/
https://discuss.python.org/t/python-3-10-14-3-9-19-and-3-8-19-is-now-available/48993
https://bugs.gentoo.org/927299

dongheena, to random
@dongheena@fosstodon.org avatar

CPython team now applies the thread sanitizer aka TSAN through CI to detect race issues preemptively

https://github.com/python/cpython/issues/112536

#cpython

dongheena, to python
@dongheena@fosstodon.org avatar

https://github.com/python/cpython/issues/112087

With 13 patches, the list is now maybe(!!) compatible with PEP 703 implementation.
I annotated "maybe" because we can not be sure until the GIL is truly disabled.

#cpython #python

hugovk, to python
@hugovk@mastodon.social avatar

🍏Ⓜ️1️⃣🐍Good news!

Now that @github Actions supports macOS M1 runners, we've added them to the CPython CI, and have finally promoted aarch64-apple-darwin to the top support tier!

This means CI failures block releases, cannot be merged to main or must be fixed or reverted immediately, and the whole core dev team is responsible rather than one or two.

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

dongheena, to python
@dongheena@fosstodon.org avatar

https://github.com/python/cpython/issues/111968
There is a concept of object pool for object allocation in CPython, aka free list.
The free list currently exists per interpreter with default build CPython.
For PEP 703, it should exist per thread to avoid race conditions and lock competition.
Now CPython supports both per-thread and per-interpreter freelist in a seamless way without touching the runtime implementation.
Discussing design with Sam Gross and Eric Snow was quite an exciting experience.

#python #cpython

brettcannon, to random
@brettcannon@fosstodon.org avatar

After 2 years and introducing the concept of tiered platform support to , has reached tier 2!

https://peps.python.org/pep-0011/#tier-2

I'm obviously not done w/ all of this, but at least I don't have a moving target for testing stability.

And for those that care, this is for WASI 0.1 (nee preview 1) w/ WASI SDK 20 and Wasmtime running -Spreview2=n; WASI 0.2 support is on the TODO list.

ThePSF, to python
@ThePSF@fosstodon.org avatar

Software Bill-of-Materials (SBOM) documents are now available for CPython source artifacts! 🥳 #python #cpython #sbom https://pyfound.blogspot.com/2024/02/software-bill-of-materials-now-available-for-cpython.html

Ever wonder what CPython is made of? 🤔 SBOMs are like a list of ingredients for software which lets Python users track vulnerabilities in the runtime and its dependencies with confidence instead of guesswork.

https://pyfound.blogspot.com/2024/02/software-bill-of-materials-now-available-for-cpython.html

SnoopJ, to python
@SnoopJ@hachyderm.io avatar

Managed to build the and get it running in wasmtime via the API, thanks to @brettcannon's build script and documentation 👀

brettcannon, to random
@brettcannon@fosstodon.org avatar

For anyone interested in what it takes to build #CPython for #WASI : https://github.com/python/devguide/pull/1273

hugovk, to python
@hugovk@mastodon.social avatar

🎉 Please welcome our two newest Python core developers! 🎈🐍🎈

Sam Gross is the author of PEP 703 and leading the work to remove the GIL

Nikita Sobolev is the fourth most active contributor (since 2020) and was recently made a @ThePSF Fellow.

https://discuss.python.org/t/vote-to-promote-sam-gross/44323

https://discuss.python.org/t/vote-to-promote-nikita-sobolevn/44376

And just for fun I made a chart of the number of new core developers per year!

#Python #CPython #CoreDeveloper #PEP703 #PSFFellow

hugovk, to python
@hugovk@mastodon.social avatar

Not only has Brandt Bucher opened a PR to add #JIT compiling to #CPython, he's done it via poetry!

'Twas the night before Christmas, when all through the code
Not a core dev was merging, not even Guido;
The CI was spun on the PRs with care
In hopes that green check-markings soon would be there;
The buildbots were nestled all snug under desks,
Even PPC64 AIX;
Doc-writers, triage team, the Council of Steering,
Had just stashed every change and stopped engineering,

https://github.com/python/cpython/pull/113465 #python

cfbolz, to random
@cfbolz@mastodon.social avatar

This weekend I landed a CPython PR that I'm very happy about (with the help of @ambv and Dennis Sweeney):

I switched the storage of all the names of Unicode code points in the unicodedata modules to using a different data structure, a "directed acyclic word graph". This makes the compiled module 440 KiB smaller. I did the same thing in PyPy a year ago, quite happy that it now made it to CPython too.

https://github.com/cfbolz/cpython/commit/9573d142157d8432f2772a109c304dafeaa454a5#diff-372ed45e01f260ef615543328bba7a8af29b0ded4e8b1f4142be55bd75ed54bf

paulox,
@paulox@fosstodon.org avatar

@cfbolz @ambv that's a great PR 👏
So many great additions from PyPy into CPython in recent years. 🐍

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

More sprint news!

🎉 Petr Viktorin @encukou will be the new Deputy CPython Developer in Residence!

https://lukasz.langa.pl/40b601fc-2b24-4629-91d9-3b32c58365c6/

👻 The first alpha of 3.13 was released on Friday 13th!

https://discuss.python.org/t/python-3-13-0-alpha-1/36109?u=hugovk

🌊 A second PEP! Authored by Guido van Rossum, @encukou @vstinner at Steve Dower and Irit Katriel proposes to establish a C API Working Group Charter:

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

#Python #CPython #CoreDevSprint #PEP

hugovk,
@hugovk@mastodon.social avatar

Back home after a long and productive week at the CPython core dev sprint.

Thanks again to @encukou, all at Red Hat, and the @ThePSF, for making it happen!

#Python #CPython #CoreDevSprint

hugovk,
@hugovk@mastodon.social avatar

Two more PEPs have been published that we worked on at the CPython core dev sprint.

PEP 732 – The Python Documentation Editorial Board

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

https://discuss.python.org/t/pep-732-the-python-documentation-editorial-board/36710?u=hugovk

PEP 733 – An Evaluation of Python’s Public C API

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

https://discuss.python.org/t/pep-733-an-evaluation-of-python-s-public-c-api/37618?u=hugovk

And listen to @ambv and Pablo Galindo Salgado's brand new podcast, the first episode was about the sprint:

https://mastodon.social/@ambv/111261671844167053

#Python #CPython #CoreDevSprint #PEP #PEP732 #docs #governance #PEP733 #CAPI

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