python

Back Open Paginator
03.08.2025 16:20
datenschauer (@datenschauer@mastodon.social)

Adding the `wraps` decorator from `functools` standard library preserves important attributes for debugging and automatic doc generation, which get lost normally, when a function is wrapped via another function.





Show Original Post


03.08.2025 15:44
ubuntu_touch (@ubuntu_touch@mstdn.social)

Prisma triangular de Euclides:
- Cualquier prisma con base triangular es divisible en tres pirámides de base triangular de igual volumen

objetivo: Graficar 1 prisma y 3 pirámides

#Geometria #3D #Python #Guanacaste #Lecheria #Anzoategui software Libre flisol





Show Original Post


03.08.2025 15:42
WillyECoyote69 (@WillyECoyote69@mstdn.social)

Some sunday coding / hacking and following #Python #F1 #HungaryGP 😜





Show Original Post


03.08.2025 15:34
villares (@villares@pynews.com.br)

More #trimesh studies... got back some missing edges, but also got one unwanted edge betweeen two co-planar faces. Code at: github.com/villares/sketch-a-d
More sketch-a-day: abav.lugaralgum.com/sketch-a-d
If you like this, support my work:
paypal.com/donate/?hosted_butt
liberapay.com/Villares
wise.com/pay/me/alexandrev562 #Processing #Python #py5 #CreativeCoding





Show Original Post


03.08.2025 15:32
ferret_stack (@ferret_stack@mastodon.social)

Here's a screenshot from Aston Villa v Fulham last season

I scrape the Premier League website for a pet project of mine and since the end of the season they've made a lot of changes to the site

(and added more data)

I've thus made a lot of changes to the code

(and now scrape more data!)

One of the quirks is that red/yellow cards will display `()`, not 0

No other null values display like this though

Ever found oddities in websites?





Show Original Post


03.08.2025 14:33
fathikhah (@fathikhah@persadon.com)

#programming #python #python #python #cpp





Show Original Post


03.08.2025 13:12
tyldurd (@tyldurd@framapiaf.org)

Anyone would know a workaround about the lack of native support for complex valued arrays in #xarray netcdf writer?

#datascience #python




Show Original Post


03.08.2025 12:36
k0tlin (@k0tlin@mastodon.ml)

Разрабатывать гуй с PySide6 удобно. Сам пишешь себе архитектурные паттерны и сам решаешь следовать им или нет.
Раньше пробовал писать гуй на Rust/C# (iced/Avalonia). На расте было тоже нормально, но это было _нудно_, токсичные отношения с компилятором короче. А в авалонии шарпа тонна бойлерплейта и файлов с папками, голова кругом.
Чтобы не быть пустословным скажу, что на авалонии и iced я написал гуй для разных приложений (sme-rs, plombir-launcher). Их можно у меня в кодеберге посмотреть

#python #gui #pyside6





Show Original Post


03.08.2025 12:26
HaraldKi (@HaraldKi@nrw.social)

The pythonbuilder got a few improvements. Apart from introducing ruff as a consistent python code formatter and for linting in addition to mypy, it got a new module pbpython.py which wraps

- ruff check
- ruff format
- mypy

calls for easy use as target builders.

codeberg.org/harald/pythonbuil

#pythonbuilder
#buildmachine
#bashbuilder
#buildsystem
#buildtool
#softwaredevelopment
#programming
#python
#ruff
#mypy




Show Original Post


03.08.2025 12:12
frankirezafe (@frankirezafe@merveilles.town)

/ ╔╗
║╚■
╔╝
╔╝
╔╣
╔╦╬╣
╚╩╬╬╗■■
╔═╩╩╩╩╝
╔╝
■╬╗
╠╣
■╣■


╔╬╗
■╣╠╩╗
║■ ■

[program finished]
#python #network




Show Original Post


03.08.2025 11:00
m_berberich (@m_berberich@chaos.social)

@ct_Magazin

Sobald man anfängt Shellscripte zu „programmieren“ hat was man was falsch gemacht und sollte dringend python lernen.

#shell #python




Show Original Post


03.08.2025 09:25
hn50 (@hn50@social.lansky.name)

LangExtract: Python library for extracting structured data from language models

Link: github.com/google/langextract
Discussion: news.ycombinator.com/item?id=4

#python




Show Original Post


1 ...1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 ...1545
UP