Michał Górny · @mgorny
216 followers · 1216 posts · Server pol.social

Poranna porcja aktualizacji paczek w zakończona.

Testy w 3.7.2 sypią się na 32-bitowych architekturach. Miejmy nadzieję, że to tylko kwestia testów dla wariantu zstd, który nie jest w stanie działać na 32-bitowych architekturach, a nie ogólniejszego błędu w kodzie.

github.com/libarchive/libarchi

Nie widać też żadnych postępów w temacie naprawy libarchive.pc:

github.com/libarchive/libarchi
github.com/libarchive/libarchi

google-auth usunęło zależność od six. Niestety, dalej brak postępów w kwestii zgodności z urllib3 w wersji 2:

github.com/googleapis/google-a

1.1.0 zaczęło się sypać na pypy3. Ktoś to nawet zgłosił, ale już widzę, jak bardzo to obchodzi Google'a. To rzekłszy, mamy tam traceback z RPythona, więc zgłoszę problem wprost do .

github.com/google/brotli/issue

#python #pypy #brotli #libarchive #gentoo

Last updated 1 year ago

Andreu Casablanca 🐀 · @castarco
97 followers · 214 posts · Server hachyderm.io

1/2

At first, I was a bit skeptical of the new Modular's language.

Having no binaries available (only a playground), and a long history of contenders such as or Pyston that never achieved full compatibility... was a huge turnoff.

The amount of Python compilers that never reach 100% compatibility is almost hilarious.

Having seen the tremendous amount of effort behind , and how little is its community compared to Python's... adds on top of that.

#mojo #python #pypy #julialang

Last updated 1 year ago

Michał Górny · @mgorny
200 followers · 1015 posts · Server pol.social

No więc doczekaliśmy się pierwszej paczki (pdm), która używa truststore, nowej paczki zastępującej certifi, która ma używać systemowych certyfikatów.

Złe wiadomości są takie:

- działa tylko z CPython-em (na już nie)
- działa tylko z Pythonem 3.10+ (dla to nie problem)
- prawie wszystkie testy wykorzystują zewnętrzne strony internetowe (tyle na temat bezpieczeństwa…)

pypi.org/project/truststore/

#python #gentoo #pypy

Last updated 1 year ago

Michał Górny · @mgorny
199 followers · 983 posts · Server pol.social

Eksperci Pythonowi & miłośnicy : przydałaby nam się pomoc w ogarnięciu, dlaczego się sypie z PyPy 3.10. Poziom abstrakcji w tym kodzie powoduje u mnie zawroty głowy.

gitlab.gnome.org/GNOME/pygobje

#python #gentoo #pygobject #pypy

Last updated 1 year ago

Paolo Melchiorre · @paulox
1025 followers · 1679 posts · Server fosstodon.org

Everyone, welcome to the Fediverse for Antonio Cuni @antocuni , HPy founder, PyPy and PyScript and a friend of mine. 👋

#HPy #pypy #Pyscript #python

Last updated 1 year ago

Seth Michael Larson · @sethmlarson
961 followers · 736 posts · Server fosstodon.org

v2.0.4 is now available! This was the first release by our new maintainer Illia Volochii 🎉

now uses stdlib hostname verification if possible
– Union operator support for HTTPHeaderDict
– Emits http.client.connect audit events

github.com/urllib3/urllib3/rel

#urllib3 #pypy

Last updated 1 year ago

Michał Górny · @mgorny
48 followers · 237 posts · Server pol.social

Spece od języka : mamy ciekawy problem w interakcji pomiędzy ijson i .

ijson wywołuje metodę __wait__() funkcji asynchronicznej i iteruje po wynikach aż otrzyma wyjątek StopIteration. Wówczas zbiera z niego wartość zwrotną funkcji. Wersja w czystym Pythonie działa zarówno z CPythonem, jak i z PyPy. Natomiast API w C działa na CPython ie (tp_iternext() tworzy wyjątek StopIteration), ale nie w PyPy. Pytanie brzmi: czy to bug w PyPy, czy jest inny sposób na otrzymanie wyniku asynchronicznej funkcji z API C?

github.com/ICRAR/ijson/issues/
foss.heptapod.net/pypy/pypy/-/

#pypy #python

Last updated 1 year ago

Michał Górny :gentoo: · @mgorny
443 followers · 2287 posts · Server fosstodon.org

language lawyers, we're seeing some interesting issue with / ijson.

ijson is calling the async function's __wait__() method and iterating over the results until it gets StopIteration exception, and it uses it to get the return value. This works in Python both in CPython and PyPy but within C API, CPython tp_iternext() raises StopIteration while in PyPy it does not — is that a bug or is there some other way to get the return value?

github.com/ICRAR/ijson/issues/
foss.heptapod.net/pypy/pypy/-/

#python #pypy

Last updated 1 year ago

Michał Górny · @mgorny
39 followers · 136 posts · Server pol.social

W ramach zajęcia czymś uwagi, udało mi się rozkminić problemy na linii 3.10. Okazało się, ze były to dwa problemy w implementacji hashlib:

1. PyPy nie kasuje błędu z OpenSSL po tym, jak pobieranie funkcji hashującej się nie powiedzie, oraz

2. PyPy nie ma mapowania dla funkcji SHA3, i próbuje pobierać je używając niewłaściwych nazw.

Myślę, że problem nr 1 może też dotyczyć CPythona, ale nie wiem, jak go odtworzyć.

github.com/pyca/cryptography/i

#python #pypy #OpenSSL

Last updated 2 years ago

Michał Górny :gentoo: · @mgorny
434 followers · 2180 posts · Server fosstodon.org

As a matter of distraction, I've managed to figure out the problems in 3.10. Turns out there were two problems, both coming from hashlib:

1. PyPy is not clearing OpenSSL error after unsuccessfully fetching a hash, and

2. PyPy lacked mapping mapping for SHA3 hashes and tried to fetch them using wrong names.

I *think* that CPython suffers from 1. too but I don't know how to reproduce there.

github.com/pyca/cryptography/i

#openssl #pypy #python

Last updated 2 years ago

Michał Górny · @mgorny
38 followers · 122 posts · Server pol.social

Gdyby ktoś szukał wyzwania, przydałaby nam się pomoc w rozwikłaniu, dlaczego importowanie cryptography na 3.10 powoduje pojawienie się błędów w .

github.com/pyca/cryptography/i

#gentoo #rustlang #python #OpenSSL #pypy

Last updated 2 years ago

Michał Górny :gentoo: · @mgorny
432 followers · 2163 posts · Server fosstodon.org

If anyone's up for a challenge, we'd use some help figuring out why importing cryptography on 3.10 causes errors to appear on the error stack.

github.com/pyca/cryptography/i

#pypy #openssl #python #rustlang

Last updated 2 years ago

Michał Górny · @mgorny
34 followers · 78 posts · Server pol.social

Podzieliłem 7.3.12rc2 w na dwie paczki: dev-python/pypy3_9 (instaluje binarkę "pypy3.9") i dev-python/pypy3_10 (binarka "pypy3.10").

Oznacza to, że teraz można zainstalować obie paczki i zrobić np.:

tox -e pypy39,pypy310

Jeżeli chodzi o flagi, pozostajemy przy jednej "pypy3". dev-python/pypy3 instaluje symlink "pypy3" do odpowiedniej binarki. Chwilowo wrzuciłem rewizje dla 3.9 i 3.10, ale docelowo zostanie tylko 3.10.

#python #gentoo #pypy

Last updated 2 years ago

Michał Górny :gentoo: · @mgorny
425 followers · 2112 posts · Server fosstodon.org

With 7.3.2rc2 in , I've split the interpreter into dev-python/pypy3_9 (installing "pypy3.9" executable) and dev-python/pypy3_10 ("pypy3.10" executable).

Notably, this means that you can install both and then do e.g.:

tox -e pypy39,pypy310

There's still only one "pypy3" target, and dev-python/pypy3 installs a "pypy3" symlink to the appropriate executable. Temporarily, it comes in 3.9 and 3.10 revisions but it'll be 3.10-only.

#pypy #gentoo #python

Last updated 2 years ago

Paolo Melchiorre #PyConDE 2023 · @paulox
947 followers · 1307 posts · Server fosstodon.org

Antonio Cuni ( Principal Software Engineer core developer founder) gave the talk "The CPU in your browser: WebAssembly demystified" at 2023 🇺🇲🐍

CC @pycon @conda @PyConUS

#anaconda #Pyscript #pypy #HPy #pyconus #pythonspeakingtour

Last updated 2 years ago

Six Feet Up · @sixfeetup
3 followers · 2 posts · Server sixfeetup.social

On a recent @pythonbytes podcast, @calvinhp talks , the latest release of and @sqlalchemy and more! Read all about it 👉 t.co/5uCHVdpzI2
t.co/Pxjphl2qBJ

#pwc2023 #mypy #python #pypy

Last updated 2 years ago

Corbin · @corbin
10 followers · 98 posts · Server defcon.social

@0xabad1dea I'm of two minds on this. On the right hand, this is merely an instance of the Gödel-machine pattern suggested by Schmidhuber.

On the left hand, surely the actual way to get more speed out of Torch on CPU would be to officially support , and I don't see such a machine finding such a plan anytime soon.

On the gripping hand, I've already built something like this in private, and it was completely incapable of hacking on itself. They aren't *that* skilled.

#pypy

Last updated 2 years ago

Sebastian Kübeck · @skuebeck
18 followers · 180 posts · Server graz.social
LisPi · @lispi314
190 followers · 2760 posts · Server mastodon.top

@dekkzz76 Yeah, it's unfortunate.

There are better runtimes for it, like , but barely anyone uses it. The one actual compiler I know for , , needs some love too.

In ideal circumstances I'd say should replace it. No GIL, proper multithreading, JIT and it's a .

#pypy #python #nuitka #guile #lisp

Last updated 2 years ago

Carl Friedrich Bolz-Tereick · @cfbolz
500 followers · 398 posts · Server mastodon.social

I made some good progress on 3.10 support in , test_patma passes now finally (some of the corner cases were a bit tricky) 🎉

#pypy

Last updated 2 years ago