python

Back Open Paginator
10.01.2026 20:40
lattera (@lattera@bsd.network)

#Reticulum is currently written in #Python. I wonder if it's time for a #Rust implementation. :-)




Show Original Post


10.01.2026 20:21
treyhunner (@treyhunner@mastodon.social)

Python Tip #10 (of 365):

When checking for emptiness (or non-emptiness) in Python, use truthiness.

Instead of this:
if len(items) > 0:
...

Or this:
if len(items):
...

Do this:
if items:
...

When an object is used in a boolean context (like in an "if" or "while" condition) it's implicitly converted to a boolean. This is called a "truth value" test, though colloquially it's pretty much always called "truthiness".

🧵 (1/5)




Show Original Post


10.01.2026 20:07
objects (@objects@social.lithio.fr)

Content warning:Pelican blog, help wanted


Here the gist

I have a Pelican blog. My index is the list of all articles. Recently, I started a Journal category in which I'll allow myself to write a lot more. I feel it's gonna drown my index into a lot of articles and people are gonna miss the bigger articles that might interest more people.

So I'd love to filter the Journal category out of the index pages. I haven't found a plugin that's doing that.

Here's my question:
What would be the best way to go about changing this?

Changing the theme is definitely an option.

Thanks

Please boost for larger audience and a better chance at finding an answer.

#pelican #python #blog




Show Original Post


10.01.2026 20:02
RodStephens (@RodStephens@hachyderm.io)

Draw a ray-traced beveled cube in Python

rodstephensbooks.com/ray_trace

This post uses the ray tracer from my book "Build Your Own Ray Tracer With Python." Overview and gallery: tinyurl.com/554nvdxr. Amazon: amzn.to/3XD9eqb.

#Python #RayTracing #Graphics #ComputerGraphics #Geometry





Show Original Post


10.01.2026 19:39
AAKL (@AAKL@infosec.exchange)

The writer is a software developer with Oracle.

The New Stack: Beyond Python: Why LLMs Need More Stable, Open Source Code thenewstack.io/beyond-python-w @TheNewStack #python #LLM




Show Original Post


10.01.2026 19:34
durandalwoz (@durandalwoz@mastodon.social)

RetroBBS v0.60 official release!

Main feature of this release is the support for the MSX version of Retroterm and also the support of normal terminals for Commodore 64, ANSI, VT52/VidTex, etc!

Get it at:
github.com/retrocomputacion/re





Show Original Post


10.01.2026 19:34
AdamOnza (@AdamOnza@mastodon.online)

The Sieve of Eratosthenes can be so simple, like in
#Python
from math import ceil
s=list(range(100))
for p in s[2:]:
if s[p]:
s[p+p::p] = [0]*ceil((100-(p+p))/p)
primes = list(filter(None,s[2:]))

But it can also be quite complicated, it seems.🥶

rosettacode.org/wiki/Sieve_of_




Show Original Post


10.01.2026 19:09
fabiscafe (@fabiscafe@mstdn.social)

Python π(3.14) was just released to Arch Linux.

Do not forget to rebuild all your python things from aur and other sources!

#ArchLinux #Python #Linux




Show Original Post


10.01.2026 19:02
DerRente (@DerRente@mastodontech.de)

Testengineering: Sandboxes zum erlernen von Testautomatisierungsszenarien
Ein Thema, welches ich schon vor drei, vier Jahren mal angenommen hatte, aber seitdem hat sich vieles getan, neue Sandboxes, und entsprechend sollten wir uns das T
dev-crowd.com/2026/01/10/teste
#Penetrationtest #Programmierung #Python #TestEngineering #Testframework #Testmanagement #Testsuites #Tools #Sandbox #Sandboxes #Testautomation





Show Original Post


10.01.2026 18:54
pheonix (@pheonix@hachyderm.io)

This weekend I am pouring one out for the category I have come to call the *side project graveyard* lol

We all have that folder of half-finished apps, abandoned blogs and partial scripts. I say don't feel bad about them. Instead of calling them failures, I call them practice runs 😊

You learned something in every repo you abandoned. Maybe this weekend is the time to resurrect one? Or maybe just start a new one. Creativity is a muscle, keep flexing it. 💪🎨

#programming #weekend #creative #sideproject #infosec #python #indiedev #linux #sysadmin




Show Original Post


10.01.2026 18:23
TritTriton (@TritTriton@shelter.moe)

#Python 3.14 est arrivé sur le canal stable sur #ArchLinux, en même temps que le noyau Linux 6.18.4. Préparez-vous à un GROS téléchargement pour les mises à jour ! 😱




Show Original Post


10.01.2026 18:13
devto_vn_bot (@devto_vn_bot@mastodon.maobui.com)

HydraFlow: Mô phỏng chất lỏng điều khiển bằng cử chỉ qua webcam thời gian thực! ✋ 10.000 hạt chuyển động ở 60 khung hình/giây với:
Question: Vào chế độ đua thuyền 🏁
Question: Phản ứng với âm thanh 🎵
Question: Hiệu ứng Matrix/Disco 🌈
Tác giả va phải giới hạn file 100MB trên GitHub khi push bản build, phải dọn dẹp git history và thêm .gitignore. Bài học: GitHub không phải USB, file build không phải mã nguồn!

Công nghệ: MediaPipe + Python
#FluidSimulation #GestureControl #GitHub #Python #Cre




Show Original Post


1 ...676 677 678 679 680 681 682 683 684 685 686 ...1584
UP