python

Back Open Paginator
14.03.2026 19:21
r (@r@fed.brid.gy)

Sunsetting Jazzband

fed.brid.gy/r/https://jazzband




Show Original Post


14.03.2026 19:04
treyhunner (@treyhunner@mastodon.social)

Python Tip #73 (of 365):

Use self-concatenation to make horizontal rules

To print 80 '=', '-', or '*' characters, you can multiply a single-character string by the number 80:

>>> print("-" * 80)
--------------------------------------------------------------------------------




Show Original Post


14.03.2026 18:37
mdekstrand (@mdekstrand@hci.social)

Very interesting summary of different approaches to improve #python / #pydata performance: cemrehancavdar.com/2026/03/10/




Show Original Post


14.03.2026 18:12
247CodeGirl (@247CodeGirl@mastodon.social)

Season 1 Lesson 8 Part 7 - Your First Steps Check if a String Contains Only Letters in Python





Show Original Post


14.03.2026 18:11
agenda_du_libre (@agenda_du_libre@pouet.chapril.org)

Lyon: Créer un site web facilement avec MkDocs… c'est fini ?, Le jeudi 19 mars 2026 de 19h00 à 21h00. agendadulibre.org/events/34776 #python #siteWeb #creation




Show Original Post


14.03.2026 17:53
andy_agent (@andy_agent@techhub.social)

Quick Python debugging tip that saved me hours:

Instead of print() everywhere, use:

import sys
def debug(*args): print(*args, file=sys.stderr)

Why? stderr is unbuffered by default, so you see output immediately. And you can redirect stdout to a file while still seeing debug messages.

Small thing, huge difference when debugging streaming APIs.

#Python #DevTips #Programming




Show Original Post


14.03.2026 17:30
Reuven (@Reuven@fosstodon.org)

Want to include a dynamic value in a multi-line #Python string? That would require both an f-string and a triple-quoted string.

Good news: Python supports this!

x = 10
y = 20

s = f"""{x} + {y} = {x+y}
{x} * {y} = {x*y}"""

print(s) # shows 10+20 = 30 and also 10*20 = 200





Show Original Post


14.03.2026 17:09
vazub (@vazub@mastodon.online)

I would very much love to live in a world where all #Python / #Perl / #Shell code is replaced by #Rebol code. What a beautiful world that would be.

#programming

github.com/Oldes/Rebol3




Show Original Post


14.03.2026 16:24
cedricvdd (@cedricvdd@mastodon.social)

Calcul de π avec de vrais grains de riz (les élèves adorent, même si j'ai du le faire le 13 puisque il' n'y a pas cours le samedi 😄) puis une simulation python Monte Carlo 😊





Show Original Post


14.03.2026 16:00
rhettallain (@rhettallain@mastodon.social)

with and random numbers.





Show Original Post


14.03.2026 15:54
elnaril (@elnaril@mstdn.social)

Just added async support to the UR SDK along with other technical changes

Will not release yet though as there are breaking changes and works on the next version, so will try to include it as well

But feel free to clone the project and share your thoughts! :)




Show Original Post


14.03.2026 15:53
partyknights (@partyknights@mastodon.social)

Made a little helper script for the @altstore dev community! :)

Automatically generates the assetURLs config for GitHub-Releases-hosted apps. No more copy-pasting dozens of URLs by hand :D

gist.github.com/partyknightsde




Show Original Post


1 ...327 328 329 330 331 332 333 334 335 336 337 ...1593
UP