python

Back Open Paginator
01.11.2025 07:14
mr_daemon (@mr_daemon@untrusted.website)

This last issue has been somewhat educational in terms of my over reliance on the uv lockfile, and so it caused me to change a few things in the development environment.

1) I added a CI job that runs uv sync and the test suite with `--resolution lowest-direct`, which ensure my test suite matrix passes with the minimums in the pyproject file. If I accidentally rely on a new feature of a library, I'll find out sooner rather than, you know, after a release.

2) I've added a basic smokescreen integration test for the TUI that just uses the Textual testing framework and navigates to all the screens so it can barf on exceptions, if any.

I'll be expanding this in the future but for now that's been a nice thing to add, and I would recommend it. Having a solid test suite is invaluable in a language like Python.

(Not that I'm implying I don't have tests, I still had 90% coverage prior to this, but this is absolutely an improvement nonetheless)

#python #pytest




Show Original Post


01.11.2025 07:07
mgorny (@mgorny@social.treehouse.systems)

0 days since random #Python package switched #PEP517 backend and published an incomplete source distribution.




Show Original Post


01.11.2025 06:04
post (@post@infosec.pub)

Nintendo’s Monster Capturing Patent Got Rejected by Japan’s Patent Office Due to Lack of Originality

infosec.pub/post/37003420




Show Original Post


01.11.2025 05:05
gbraad (@gbraad@mastodon.social)

is called a proper edit tool ?

● The sed command mangled it. Let me restore and fix properly:

● Now let me apply all the changes again properly using a proper edit tool. Let me create a Python script to do this

... I would say, he just doesn't know how to operate `sed` properly.





Show Original Post


01.11.2025 05:00
chrisphan (@chrisphan@hachyderm.io)

I agree with @emilydoesastro : uv is really awesome for #python environment and package management. I have been using it a lot recently.

emily.space/posts/251023-uv




Show Original Post


01.11.2025 04:54
linuxgal (@linuxgal@techhub.social)

#Python one-liner to obtain Euler's number from an infinite series: #RR

e = ∑ₖ₌₀^∞ 1/k!

e = 1 + 1/1! + 1/2! + 1/3! + 1/4! + 1/5! + ⋯

python3 -c "import math; s=0; [print(s:=s+1/math.factorial(k)) for k in range(20)]"





Show Original Post


01.11.2025 04:46
sekurakbot (@sekurakbot@mastodon.com.pl)

Pokażemy Ci jak programować w Pythonie (bezpłatnie!)

Krótko. 4 listopada startujemy z  czteroczęściowym szkoleniem Wstęp do programowania w Pythonie.  Wraz z Gynvaelem Coldwindem nauczymy Cię podstaw programowania w Pythonie. Osobom, które nie miały wcześniej styczności z programowaniem w Pythonie lub próbowały swoich sił, lecz bez powodzenia, pokażemy (skutecznie), na czym warto skupić się na początku.  Zrozumiesz podstawowe...

#WBiegu #Gynvael #Programowanie #Python #Szkolenie

sekurak.pl/pokazemy-ci-jak-pro




Show Original Post


01.11.2025 04:11
sidneysgoveia (@sidneysgoveia@fosstodon.org)

WebGIS com Python e PostGIS
Visualização de dados geográficos usando Python (Github Pages) no frontend e PostgreSQL (Supabase) no backend.
#python #postgis #postgresql #sql #webgis
⚠️ versão sem BD:
*Carregue arquivos GeoJSON e calcule áreas usando Python*
geosaber.github.io/webgis





Show Original Post


01.11.2025 03:48
villares (@villares@pynews.com.br)

#LSystem & #shapely 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


01.11.2025 03:45
cazabon (@cazabon@mindly.social)

@linuxgal

Note that this isn't Python-specific behaviour. This is required by the IEEE-754 floating-point standard, which Python (and most other runtimes) conform to.

NaN, Inf, -Inf, comparison rules, exceptions ... it's all in there.

#Python #IEEE754 #FloatingPoint #math #standard




Show Original Post


01.11.2025 03:40
teguhteja (@teguhteja@mastodon.social)

Build your own AI-powered Python Search Engine! Learn to aggregate data from multiple sources & get smarter insights.

teguhteja.id/python-search-eng




Show Original Post


01.11.2025 03:38
jrovu (@jrovu@mastodon.social)

Want to know a fun way to make progress on writing a computer program, but you don't have much time? Open a new file, and start writing things out as comments - no "real" code. Later, sneak in some print statements, run it, and then commit it, walk away - come back to it later.

It's a useful tool for (1) reducing procrastination, (2) gives a boost for "activation energy" - seeing some print statements feels like progress, and (3) Makes it easy to start up next time.




Show Original Post


1 ...1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 ...1564
UP