Tootfinder

Opt-in global Mastodon full text search. Join the index!

@hynek@mastodon.social
2024-05-13 15:59:34

Before I start churning out my pre-PyCon releases, how about a build-and-inspect-python-package that adds GitHub-style build provenance attestations by just adding one setting (and one permission)!? #python

@grifferz@social.bitfolk.com
2024-04-13 19:31:12

Checking for file update every second against a whole tree of files…
Some places already have accounting for IOPS, RAM, disk, CPU time. I expect that to become more common even for private clouds.
utcc.utoronto.ca/~cks/space/bl

 Chris's Wiki
@crell@phpc.social
2024-05-13 15:27:09

Teaching #Python folks the joys of clear and explicit object type definitions. An interesting experience...
#Programming

@frankel@mastodon.top
2024-03-15 09:08:00

#Pydantic for Experts: Discriminated Unions in Pydantic V2
blog.det.life/pydantic-for-exp

@mgorny@social.treehouse.systems
2024-05-12 13:11:12

These is one of these days when it occurs to you: "hey, packages using #Python and #RustLang, may have *both* Python and Cargo-level tests." And then you spend a lot of time going over all Rust-enabled dev-python/* packages and adding `cargo_src_test` where appropriate.
As it turns out, many of them did. Most of these don't actually link to libpython, so I suppose it's fine to test them once. Pydantic-core does, so I test per-impl (but also can't test on PyPy). Cryptography has Rust-level tests that don't even build (they fail at linking).
#Gentoo

@heiseonline@social.heise.de
2024-05-08 12:36:00

heise | PyTorch: Eigene Bildgenerierungs-KI mit Python bauen
Künstliche Intelligenz muss nicht kompliziert sein. Mit der PyTorch-Bibliothek bauen Sie Ihren eigenen KI-Bildgenerator in Python. Wir erklären, wie das geht.

@chrysn@chaos.social
2024-05-13 10:39:15

There is a new version, 0.4.8 of aiocoap, the asynchronous #Python library for #CoAP.
Nothing fancy in terms of features, but some improvements on error handling, type annotations (#mypy has joined CI) and platfor…

@guerda@ruhr.social
2024-03-12 16:45:34

#TIL that #Python is older than #Java

Screenshot of Wikipedia articles of Java and Python: Java Highlighted: First appeared May 23, 1995; 28 years ago; Python highlighted: First appeared: 20 February 1991; 33 years ago
@ampersine@mastodon.online
2024-03-12 03:17:40

Roses are red,
Horses eat hay,
firstalert4.com/2024/03/11/2-m

2 men planned to have ‘large’ python eat woman’s daughter before blowing up her house, police say
@wikinaut@berlin.social
2024-03-11 12:28:05

#Python
In case you need that:
Interpolation of a given #GPX-track
🔸Force number of output track points (e. g. make a track of 1000 points matching the input) ; or
🔸Force constant distance (force output track with points e. g. every meter)
Options
🔹overwrite existing timesta…

@juandesant@astrodon.social
2024-05-10 19:45:37

Wish I had learned about this sooner… eventbrite.com/e/build-your-fi

@rufposten@social.tchncs.de
2024-02-15 08:06:50

Wer als angehender OSINT- und Datenjournalist'in einen guten Einführungskurs für Python, Docker und ähnliche Tools zur Analyse von Leaks sucht, wird bei 'Hack, Leaks, and Revelations' von @… fündig.
Als gedrucktes Buch (solidarisch) oder (wer knapp bei Kasse ist) auf der Website:

@netzschleuder@social.skewed.de
2024-05-07 11:00:07

python_dependency: Python Dependency Network
Python's package dependency networks. Nodes in the network are Python's packages registered to PyPI and edges are dependencies among packages.
This network has 58743 nodes and 108399 edges.
Tags: Technological, Software, Unweighted
n…

python_dependency: Python Dependency Network. 58743 nodes, 108399 edges. https://networks.skewed.de/net/python_dependency
@flancian@social.coop
2024-03-12 00:06:28

[[Taichi]] Lang: High-performance Parallel Programming in [[Python]]
taichi-lang.org/

@mgorny@social.treehouse.systems
2024-05-14 19:13:45

#CPython 3.13 has some new fun flags for #Gentoo ricers.
USE=jit − enable to get Just-in-Time compiler and make stuff faster. Note that you're also going to see random segfaults, etc.
USE=gil − disable to get rid of Global Interpreter Lock and get a freethreading #Python. Expect some random breakage, race conditions, etc.

@michabbb@social.vivaldi.net
2024-05-11 21:58:16

@… okay, just for you my english friend: i took a python project from github. then I put all these python files (all files of the project) into gemini - as context - then I prompted: dear gemini, please be so kind and create a PHP project for me, based on this python code - because I am not a python coder, I am a PHP coder - so it would be super nice if your could crea…

@MrBerard@pilote.me
2024-05-12 10:53:33

BeeTeeDubs, I'm going live in ten with a #LiveCoding #Python Tutorial drawing flags with turtle graphics.
Really it's about abstraction and decomposition.
#ComputerScience

@khalidabuhakmeh@mastodon.social
2024-03-11 14:40:14

I’m doing #python today...

screaming homer simpson GIF
@ampersine@mastodon.online
2024-03-12 03:17:40

Roses are red,
Horses eat hay,
firstalert4.com/2024/03/11/2-m

2 men planned to have ‘large’ python eat woman’s daughter before blowing up her house, police say
@arXiv_eessSP_bot@mastoxiv.page
2024-03-14 08:36:52

This arxiv.org/abs/2111.00187 has been replaced.
link: scholar.google.com/scholar?q=a

@whitequark@mastodon.social
2024-05-13 05:16:56

wanna see some python crimes? github.com/GlasgowEmbedded/gla

@mgorny@pol.social
2024-05-11 08:42:45

Właśnie trafiłem na pierwszy padający test, wynikający z użycia JIT w CPythonie 3.13. Co ciekawe, wygląda na to, że hak `gc.collect()`, którego używano dla #PyPy, nie pomaga.
github.com/pallets/markupsafe/<…

`tests/test_leak.py
@johl@mastodon.xyz
2024-03-04 20:33:35

From Beeps to Toots: Reviving Pagers with Python and Mastodon finnley.dolphinhome.net/2024/0

@arXiv_csPL_bot@mastoxiv.page
2024-03-12 07:22:59

Automatic Generation of Python Programs Using Context-Free Grammars
Kamel Yamani, Marwa Na\"ir, Riyadh Baghdadi
arxiv.org/abs/2403.06503

@shriramk@mastodon.social
2024-04-12 15:52:42

1/ Once you look past syntax and "paradigms", many programming languages (Java, Python, Racket, …) share a common semantic core. But students seem to understand it very poorly, which leads to endless confusion (as often seen on here). What to do? ↵
blog.brownplt.org/2024/04/12…

@JGraber@mastodon.social
2024-03-08 19:00:51

#Python Friday #217: Path- and Query Parameters in #FastAPI
impr…

@Madelen@social.linux.pizza
2024-04-12 18:29:44

RenPy is such an interesting project.
#programming #python

@netzschleuder@social.skewed.de
2024-03-07 06:00:07

python_dependency: Python Dependency Network
Python's package dependency networks. Nodes in the network are Python's packages registered to PyPI and edges are dependencies among packages.
This network has 58743 nodes and 108399 edges.
Tags: Technological, Software, Unweighted
n…

python_dependency: Python Dependency Network. 58743 nodes, 108399 edges. https://networks.skewed.de/net/python_dependency
@arXiv_condmatmtrlsci_bot@mastoxiv.page
2024-04-15 08:41:53

This arxiv.org/abs/2403.08012 has been replaced.
link: scholar.google.com/scholar?q=a

@arXiv_csSE_bot@mastoxiv.page
2024-03-12 06:57:19

Cross-ecosystem categorization: A manual-curation protocol for the categorization of Java Maven libraries along Python PyPI Topics
Ranindya Paramitha, Yuan Feng, Fabio Massacci, Carlos E. Budde
arxiv.org/abs/2403.06300

@luana@tech.lgbt
2024-04-12 14:53:50

Retrospring
Your quite techy (more.then me lol). Do you program.anf if.so what? — I do! I program in rust or python usually, rn I’m trying to make a WM in rust using smithay
Feel free to check my github! retrospring.net/@Luana/a/11225

@arXiv_condmatmeshall_bot@mastoxiv.page
2024-03-15 08:41:01

This arxiv.org/abs/2311.18726 has been replaced.
initial toot: mastoxiv.page/@a…

@arXiv_quantph_bot@mastoxiv.page
2024-02-15 07:13:19

GraphiQ: Quantum circuit design for photonic graph states
Jie Lin, Benjamin MacLellan, Sobhan Ghanbari, Julie Belleville, Khuong Tran, Luc Robichaud, Roger G. Melko, Hoi-Kwong Lo, Piotr Roztocki
arxiv.org/abs/2402.09285

@arXiv_qbioQM_bot@mastoxiv.page
2024-03-13 08:50:38

This arxiv.org/abs/2310.06881 has been replaced.
initial toot: mastoxiv.page/@arXiv_qbi…

@heiseonline@social.heise.de
2024-03-01 13:05:00

Python für Umsteiger – Einstieg in die KI-Sprache für Entwickler in 5 Webinaren
Alle reden von KI und Machine Learning – Python bildet dafür die Basis. Lernen Sie in fünf Webinaren ab dem 25.04. diese Sprache zu beherrschen.

@khalidabuhakmeh@mastodon.social
2024-03-11 14:40:14

I’m doing #python today...

screaming homer simpson GIF
@adrianco@mastodon.social
2024-04-09 02:51:24

Decided I wanted to extract the transcripts from videos of talks I’ve given, and used ChatGPT to write Python code (I‘m not a Python programmer) to read the YouTube API (which I’ve not used before). First thing I found is that OAuth is needed so that Google knows who you are. Then found that I can only read the transcript for videos I personally posted. So now ChatGPT is helping me write code to scrape the web page that I can see the Transcript on. No way I could have done this on my own.

@Xavier@infosec.exchange
2024-03-09 17:58:24

I have a question for those who know #rust. When I went to school I learned Assembly, ANSI C, Java, and Perl (oh... and Mathematica, but I'm trying to forget it). Then I learned VB (later .NET), C , and Python on my own. I've never been a full-time developer, but I will pick up an occasional pet project. Nearly everything I've done in the last 10 years has been in python.
Should I learn Rust? Are there new #programming concepts? Are there other reasons, as am #infosec professional, that make it worthwhile to run to an "Intro to Rust" class?

@arXiv_eessSP_bot@mastoxiv.page
2024-03-14 08:36:52

This arxiv.org/abs/2111.00187 has been replaced.
link: scholar.google.com/scholar?q=a

@dennisfaucher@infosec.exchange
2024-05-13 17:06:31

Just stumbled on this now that I have a server with an actual GPU. Host a jupyter server with GPU access.
docker run --gpus all -it --rm -p 10000:8888 -v "${PWD}":/home/jovyan/work quay.io/jupyter/datascience-notebook:2024-04-29
#Docker #AI #Python #NVIDIA

@davidshq@hachyderm.io
2024-03-08 18:12:59

I have a #python script that queries a #neo4j #database. It was working fine connecting to AuraDB but when I changed to use my local instance it started erroring out ("Unable to retrieve routing information&q…

@joe@toot.works
2024-05-06 11:14:47

I just published "I rewrote “Good Morning, Milwaukee!” in Python" over on @…. jws.news/2024/i-rewrote-good-m

@arXiv_astrophCO_bot@mastoxiv.page
2024-02-15 08:39:37

This arxiv.org/abs/2002.07179 has been replaced.
link: scholar.google.com/scholar?q=a

@mgorny@social.treehouse.systems
2024-05-12 18:35:17

By the way, if you find my #Python 3.13 porting or other #Gentoo work helpful, please consider donating to my cat food fund.
#donation

@arXiv_astrophSR_bot@mastoxiv.page
2024-02-15 08:40:28

This arxiv.org/abs/2309.14369 has been replaced.
initial toot: mastoxiv.page/@arXiv_…

@whitequark@mastodon.social
2024-04-12 19:14:13

"I was able to run the software on the first try, just by following the instructions (on MacOS). That doesn't happen often, especially with really complex software, and *especially* if Python is involved"
i know it's my efforts that are being praised, but still i can't help but feel sad
"i can install the application and it runs" is just about the lowest bar you can have. the bar of downloading random installers to run on your windows xp machine, b…

@arXiv_astrophIM_bot@mastoxiv.page
2024-05-14 07:00:00

planetMagFields: A Python package for analyzing and plotting planetary magnetic field data
Ankit Barik, Regupathi Angappan
arxiv.org/abs/2405.07168

@piger@mastodon.social
2024-04-12 12:39:36

staring at 3 pages of a stacktrace from Python, thinking this could have been an if err != nil

@farshidhakimy@chaos.social
2024-05-09 12:16:00

Kann man in #Python eigentlich Variablen z.B. mit #Redis oder anderen Key-Value-Stores ersetzen und dabei so wenig Code wie möglich verändern?
Sodass die Variablen sozusagen auf allen Servern in Echtzeit den gleichen Wert haben?

@hynek@mastodon.social
2024-05-11 07:44:02

Come for wisdom on tox & Nox – stay for unrelated gems that will improve your life! #python #video
youtu.be/ImBvrDvK-1U

@mgorny@pol.social
2024-05-11 06:06:00

Rzecz jasna, że jest backend #PEP517 dla Sconsa, jednego z najgorszych systemów budowania w dziejach ludzkości.
Rzecz jasna, że nie implementuje poprawnie PEP517.

@cdp1337@social.veraciousnetwork.com
2024-05-09 05:11:23

#Python
As I'm working on my #networking diagnostic script which relies on my OS abstraction layer for system information I built a number of years back, I decided it would make more sense to formally port this API up to pypi as a standalone library. (It doesn…

@Madelen@social.linux.pizza
2024-04-12 18:29:44

RenPy is such an interesting project.
#programming #python

@nobodyinperson@fosstodon.org
2024-05-04 11:42:49

I think I have finally™️ (for the third or so time) found myself a solution for :python: #Python development on :nixos: #NixOS that allows me to just work with #pythonPoetry et. al. as on other distros.

@luana@tech.lgbt
2024-04-12 14:53:50

Retrospring
Your quite techy (more.then me lol). Do you program.anf if.so what? — I do! I program in rust or python usually, rn I’m trying to make a WM in rust using smithay
Feel free to check my github! retrospring.net/@Luana/a/11225

@heiseonline@social.heise.de
2024-04-30 02:39:01

Google ersetzt Python-Team durch "billigere Arbeitskräfte"​ in München
Google baut weiter Mitarbeiter ab. Einem Python-Team wurde offenbar komplett gekündigt; "billigere" Mitarbeiter gibt es wohl in München.

@netzschleuder@social.skewed.de
2024-05-03 05:00:06

python_dependency: Python Dependency Network
Python's package dependency networks. Nodes in the network are Python's packages registered to PyPI and edges are dependencies among packages.
This network has 58743 nodes and 108399 edges.
Tags: Technological, Software, Unweighted
n…

python_dependency: Python Dependency Network. 58743 nodes, 108399 edges. https://networks.skewed.de/net/python_dependency
@mgorny@social.treehouse.systems
2024-05-14 12:40:54

Here's my newest optimization idea for #Gentoo #Python: for pure Python packages and packages using the stable #CPython API, let's reuse previously built wheels if they're compatible instead of building them separately for each Python implementation.
This is mostly a major gain for the lot of packages using #setuptools when you're using multiple PYTHON_TARGETS, since calling into that build system has a significant cost. However, it also saves some actual compiling in the packages using the stable API (particularly, Rust packages).
github.com/gentoo/gentoo/pull/
bugs.gentoo.org/931689

@JGraber@mastodon.social
2024-04-05 18:21:34

#Python Friday #221: Refactor the #FastAPI To-Do Application
i…

@arXiv_csPL_bot@mastoxiv.page
2024-04-08 08:32:11

This arxiv.org/abs/2305.04311 has been replaced.
link: scholar.google.com/scholar?q=a

@adrianco@mastodon.social
2024-04-09 02:51:24

Decided I wanted to extract the transcripts from videos of talks I’ve given, and used ChatGPT to write Python code (I‘m not a Python programmer) to read the YouTube API (which I’ve not used before). First thing I found is that OAuth is needed so that Google knows who you are. Then found that I can only read the transcript for videos I personally posted. So now ChatGPT is helping me write code to scrape the web page that I can see the Transcript on. No way I could have done this on my own.

@netzschleuder@social.skewed.de
2024-05-03 05:00:06

python_dependency: Python Dependency Network
Python's package dependency networks. Nodes in the network are Python's packages registered to PyPI and edges are dependencies among packages.
This network has 58743 nodes and 108399 edges.
Tags: Technological, Software, Unweighted
n…

python_dependency: Python Dependency Network. 58743 nodes, 108399 edges. https://networks.skewed.de/net/python_dependency
@hynek@mastodon.social
2024-04-02 13:48:51

New blog post: Python Project-Local Virtualenv Management Redux
In which I describe how I currently manage my virtual environments for both unpinned packages and pinned applications. It started as a TIL update to an older TIL, but as it grew more and more, I’ve concluded this is a proper blog post!
Enjoy:

@arXiv_astrophCO_bot@mastoxiv.page
2024-03-15 07:16:15

cosmocnc: A fast, flexible, and accurate galaxy cluster number, count likelihood code for cosmology
\'I\~nigo Zubeldia, Boris Bolliet
arxiv.org/abs/2403.09589

@mgorny@social.treehouse.systems
2024-05-12 16:45:48

How about tests that fail in a completely nondescript way if your hostname is 12 characters long? I mean, the bash prompt gets into output and breaks matching in one environment, and doesn't in an environment with a shorter hostname.
As it turns out, it was caused by putting a wrong path to bashrc override while adding zsh support to #ArgComplete. I guess most people didn't get a long enough bash prompt to hit the failure.
#Gentoo #Python

@frankel@mastodon.top
2024-03-26 09:19:03

Breaking #Packages in #Python: an exposé of the nooks and crannies of Python’s modules and packages
dagster.io/bl…

@mgorny@pol.social
2024-05-12 13:11:13

Dziś jest jeden z tych dni, kiedy myślisz sobie: "hej, paczki, które używają Pythona i Rusta, mogą mieć *zarówno* testy na poziomie Pythona, jak i Cargo." I potem spędzasz sporo czasu, sprawdzając po kolei wszystkich rustowatych przedstawicieli dev-python/*, i dodając `cargo_src_test` gdzie trzeba.
Jak się okazuje, sporo paczek miało takie testy. Większość z nich nie linkuje się z libpython, więc wydaje mi się, że wystarczy testować je raz. Takie pydantic-core z kolei się lin…

@arXiv_csSE_bot@mastoxiv.page
2024-04-11 06:52:56

Detecting Refactoring Commits in Machine Learning Python Projects: A Machine Learning-Based Approach
Shayan Noei, Heng Li, Ying Zou
arxiv.org/abs/2404.06572

@chrysn@chaos.social
2024-03-06 08:18:37

Me, looking at #Python 3.13 changes: Hey nice, I'd like to use this (today: helpers for #IPv6 mapped addresses).
Me, looking at downstream projects: Hm, once they upgrade their deployments, I can finally use Python 3.10 features!

@whitequark@mastodon.social
2024-04-23 05:59:51

list ass slice github.com/python/cpython/blob

screenshot of some python code with a function called "list_ass_slice"
@netzschleuder@social.skewed.de
2024-04-01 19:00:07

python_dependency: Python Dependency Network
Python's package dependency networks. Nodes in the network are Python's packages registered to PyPI and edges are dependencies among packages.
This network has 58743 nodes and 108399 edges.
Tags: Technological, Software, Unweighted
n…

python_dependency: Python Dependency Network. 58743 nodes, 108399 edges. https://networks.skewed.de/net/python_dependency
@arXiv_eessSP_bot@mastoxiv.page
2024-04-15 06:53:57

SNAKE-fMRI: A modular fMRI data simulator from the space-time domain to k-space and back
Pierre-Antoine Comby (MIND, BAOBAB), Alexandre Vignaud (BAOBAB), Philippe Ciuciu (MIND)
arxiv.org/abs/2404.08282

@JGraber@mastodon.social
2024-04-12 18:01:03

#Python Friday #222: Filter the Tasks in the #FastAPI Application #DependencyInjection

@heiseonline@social.heise.de
2024-03-21 11:03:00

Python für Umsteiger – Einstieg in die KI-Sprache für Entwickler in 5 Webinaren
Alle reden von KI und Machine Learning – Python bildet dafür die Basis. Lernen Sie in fünf Webinaren ab dem 25.04. diese Sprache zu beherrschen.

@netzschleuder@social.skewed.de
2024-02-29 22:00:07

python_dependency: Python Dependency Network
Python's package dependency networks. Nodes in the network are Python's packages registered to PyPI and edges are dependencies among packages.
This network has 58743 nodes and 108399 edges.
Tags: Technological, Software, Unweighted
n…

python_dependency: Python Dependency Network. 58743 nodes, 108399 edges. https://networks.skewed.de/net/python_dependency
@mgorny@pol.social
2024-04-06 08:05:04

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ż …

@hynek@mastodon.social
2024-03-31 08:58:04

I’m happy to announce build-and-inspect-python-package v2.2.0 that uses build’s new --installer argument for EVEN FASTER builds: github.com/hynek/build-and-ins

@frankel@mastodon.top
2024-04-21 09:02:05

Announcing py2wasm: A #Python to #Wasm compiler
wasmer.io/posts/py2wasm-a-pyth

@arXiv_eessSP_bot@mastoxiv.page
2024-04-15 06:53:57

SNAKE-fMRI: A modular fMRI data simulator from the space-time domain to k-space and back
Pierre-Antoine Comby (MIND, BAOBAB), Alexandre Vignaud (BAOBAB), Philippe Ciuciu (MIND)
arxiv.org/abs/2404.08282

@whitequark@mastodon.social
2024-04-11 02:24:16

do you think Python would let you mix 2-space, 4-space, and tab indentation, in the same file, on the same line? (poll)

@JGraber@mastodon.social
2024-05-03 18:00:50

#Python Friday #225: Set a Response Header With #FastAPI
improvean…

@heiseonline@social.heise.de
2024-02-16 10:20:00

heise | Python-Editor für Anfänger: Einfach Code schreiben mit Mu
Mu ist ein übersichtlicher Python-Editor, der gerade für Anfänger interessant ist. Hinter den großen Buttons des Editors warten nützliche Funktionen.

@netzschleuder@social.skewed.de
2024-02-27 13:00:06

python_dependency: Python Dependency Network
Python's package dependency networks. Nodes in the network are Python's packages registered to PyPI and edges are dependencies among packages.
This network has 58743 nodes and 108399 edges.
Tags: Technological, Software, Unweighted
n…

python_dependency: Python Dependency Network. 58743 nodes, 108399 edges. https://networks.skewed.de/net/python_dependency
@frankel@mastodon.top
2024-04-15 17:18:03

#Python PEP 744 – #JITCompilation
peps.python.org/pep-0744/

@mgorny@social.treehouse.systems
2024-03-13 10:21:29

New on blog: "the story of #distutils build directory in #Gentoo".
"""
The #Python distutils build system, as well as #setuptools (that it was later merged into), used a two-stage build: first, a build command would prepare a built package version (usually just copy the .py files, sometimes compile Python extensions) into a build directory, then an install command would copy them to the live filesystem, or a staging directory. Curious enough, distutils were an early adopter of out-of-source builds — when used right (which often enough wasn’t the case), no writes would occur in the source directory and all modifications would be done directly in the build directory.
Today, in the #PEP517 era, two-stage builds aren't really relevant anymore. Build systems were turned into black boxes that spew wheels. However, setuptools still internally uses the two-stage build and the build directory, and therefore it still remains relevant to Gentoo eclasses. In this post, I'd like to shortly tell how we dealt with it over the years.
"""
blogs.gentoo.org/mgorny/2024/0

@hynek@mastodon.social
2024-03-21 06:37:32

As we face source-only security Python releases: is there an installer for github.com/indygreg/python-bui that’s not wildly out of date (looking at you Hatch) and/or difficult to use outside of predefined workflows (looking at you …

@heiseonline@social.heise.de
2024-04-16 10:04:00

Last Call: Python für Umsteiger – Einstieg in die KI-Sprache für Entwickler
Alle reden von KI und Machine Learning – Python bildet dafür die Basis. Lernen Sie in fünf Webinaren ab dem 25.04. diese Sprache zu beherrschen.

@frankel@mastodon.top
2024-04-18 09:22:08

9 Advanced #Python #Type Hints That Will Improve Your Code Significantly

@netzschleuder@social.skewed.de
2024-02-25 05:00:06

python_dependency: Python Dependency Network
Python's package dependency networks. Nodes in the network are Python's packages registered to PyPI and edges are dependencies among packages.
This network has 58743 nodes and 108399 edges.
Tags: Technological, Software, Unweighted
n…

python_dependency: Python Dependency Network. 58743 nodes, 108399 edges. https://networks.skewed.de/net/python_dependency
@hynek@mastodon.social
2024-03-27 11:11:35

I’m very happy to announce build-and-inspect-python-package 2.1.0!
The two highlights are: 1. it’s faster courtesy of uv and 2. it allows you define your strategy matrix based on your trove classifiers!
github.com/hynek/build-and-ins

@heiseonline@social.heise.de
2024-03-15 10:11:00

heise | Python: Mit PyGWalker große Datenmengen effizient visualisieren
Mit dem kostenlosen Python-Tool PyGWalker erstellen Sie schnell Visualisierungen für große Datenmengen. Wir zeigen, wie das geht.

@mgorny@social.treehouse.systems
2024-03-14 16:21:30

I've done some benchmarks to demonstrate how different versions of #Gentoo parallel #Python extension builds (using #setuptools) #PEP517 code in distutils-r1.eclass improved over the years. I've even copied the numbers into a gnumeric spreadsheet. Now I just need to find energy to make a nice chart out of that (probably using PGF/Tikz).
Some numbers for a rough idea:
Cython 3.0.9 (package with a few C extensions):
- serial PEP517 build: 46.7 s
- parallel build / build_ext PEP517: 20.8 s 2.7 s
- parallel PEP517 via DIST_EXTRA_CONFIG: 22.8 s
django 5.0.3 (moderate pure .py package):
- PEP517 build: 5.4 s
- unnecessary build PEP517: 3.1 s 5.3 s
- unnecessary build_ext PEP517: 0.6 s 5.4 s

@netzschleuder@social.skewed.de
2024-02-24 06:00:06

python_dependency: Python Dependency Network
Python's package dependency networks. Nodes in the network are Python's packages registered to PyPI and edges are dependencies among packages.
This network has 58743 nodes and 108399 edges.
Tags: Technological, Software, Unweighted
n…

python_dependency: Python Dependency Network. 58743 nodes, 108399 edges. https://networks.skewed.de/net/python_dependency
@mgorny@social.treehouse.systems
2024-05-09 05:39:34

I've added #Python 3.13.0b1 to #Gentoo yesterday, along with the initial eclass support and a few baseline ports (up to PyTest).
It's amd64-only for the time being, since we need to keyword mpdecimal.

@netzschleuder@social.skewed.de
2024-04-22 06:00:08

python_dependency: Python Dependency Network
Python's package dependency networks. Nodes in the network are Python's packages registered to PyPI and edges are dependencies among packages.
This network has 58743 nodes and 108399 edges.
Tags: Technological, Software, Unweighted
n…

python_dependency: Python Dependency Network. 58743 nodes, 108399 edges. https://networks.skewed.de/net/python_dependency
@mgorny@social.treehouse.systems
2024-04-08 16:21:15

Did you notice that the word "backslashes" includes "lashes"? That's precisely how I feel about people using unnecessary backslashes all over the place in #Python or #Bash code.
#Gentoo

@netzschleuder@social.skewed.de
2024-04-19 14:00:06

python_dependency: Python Dependency Network
Python's package dependency networks. Nodes in the network are Python's packages registered to PyPI and edges are dependencies among packages.
This network has 58743 nodes and 108399 edges.
Tags: Technological, Software, Unweighted
n…

python_dependency: Python Dependency Network. 58743 nodes, 108399 edges. https://networks.skewed.de/net/python_dependency
@mgorny@social.treehouse.systems
2024-04-06 08:05:04

On 2024-03-19, two vulnerabilities were announced on #Python #security mailing list: "quoted zip-bomb" and "TemporaryDirectory symlink dereference during cleanup". Both were announced to affect all current #CPython releases.
The same day, security releases were made for Python 3.10, 3.9 and 3.8 branches. So far, so good. However, I found it surprising that there were no releases being made for 3.11 or 3.12.
On 2024-04-02, Python 3.11.9 was tagged. Initially, the signature on source tarball didn't verify. Today, it does verify, but the release still doesn't seem to have been announced. However, what I found the most surprising is the lack of fixes for the security issues announced before! Was the release borked?
So I've checked in more detail… and it turned out that both issues were already fixed in 3.11.8 (and 3.12.2), so the security announcement was wrong. Sigh.
That said, #PyPy is still affected.
mail.python.org/archives/list/
mail.python.org/archives/list/
discuss.python.org/t/python-3-
bugs.gentoo.org/927299