python

Back Open Paginator
20.02.2026 22:15
amoateng (@amoateng@mastodon.social)

Building a dynamic dashboard in Django? Django Unicorn lets you create reactive components that update in real time. Goodbye, page reloads! @adamghill @unicorn




Show Original Post


20.02.2026 21:52
TeachrDigital (@TeachrDigital@bildung.social)

Genervt much, #NwT #NIT in #eduBW? Etwa von den Anfragen mutiger NwT-Lehrer:innen, die seit bald 10 Jahren v.a. fachfremd in #Arduino-Gefilde vorgedrungen sind und mit schwitzenden Händen das aufgebaut haben, was Ihr jetzt arrogant mit dem Arsch wieder einreißt? Sorry, kein Verständnis für diesen Ton! Auf der Sprengelsitzung musste die Leiterin schon beschwichtigen, aber mit dieser frechen Ansage stellt Ihr ja nun klar, dass das alles Augenwischerei war! #Python #Micropython (1/2)





Show Original Post


20.02.2026 21:52
TeachrDigital (@TeachrDigital@bildung.social)

#Arduino und #Python verstehen sich scheinbar nur, wenn man bestimmte Arduinos benutzt, z.B. ESP32. Die meisten werden aber einen riesigen Bestand von Unos und Nanos R3 haben, die sie nur mit C++ programmieren können. Und Ihr schreibt Euch DAS auf die Fahnen und in Euren Newsticker? Mit einer weniger schroffen Attitüde würde die #Informatik leichter Einzug in #NIT halten. Ich bin jedenfalls schön demotiviert und muss es meiner Fachschaft dennoch schmackhaft machen.

Danke für nichts! (2/2)




Show Original Post


20.02.2026 21:15
adisonverlice (@adisonverlice@tweesecake.social)

note: the #python version of the bot will continue to use gemini-3-flash-preview and the Gemini API because it does not have this same problem. if one of you want it to use a different AI model, then, well, fire up the code editor and get to work. i'll be weighting for your great proposal/push request. github.com/averlice/blindsoft-




Show Original Post


20.02.2026 21:15
cyclical_obsessive (@cyclical_obsessive@fosstodon.org)

Oh no, my #ROS2Jazzy #robot discovered #MoonDream #VisionAssistant (v0.0.6 with local model #Python API) and found an image of "a bunch of models enjoying each others company sitting on a ledge" in its filesystem.

I hope it doesn't go all obsessive and start googling them.

Certainly not letting it near social media.

#TurtleBot4





Show Original Post


20.02.2026 21:05
RodStephens (@RodStephens@hachyderm.io)

Split images into halves in Python

(The second in a four-part series leading to a flash card app.)

rodstephensbooks.com/split_ima

#Python #PIL #ImageProcessing





Show Original Post


20.02.2026 21:05
jobsfordevelopers (@jobsfordevelopers@mastodon.world)

Balbix is hiring AI/ML Architect

🔧 #python #solutionsarchitect
🌎 Bengaluru, India
⏰ Full-time
🏢 Balbix

Job details jobsfordevelopers.com/jobs/ai-
#jobalert #jobsearch #hiring




Show Original Post


20.02.2026 20:25
akkana (@akkana@fosstodon.org)

In datetime hell again. I just hate #Python's datetime SO much. Any given datetime object might or might not have a timezone. Any given function might or might not return a timezone-aware datetime. If you ever mess up and call a function that returns a timezone when you didn't expect one, or vice versa, or a function you call changes in that respect, now you have a hidden time bomb that will crash your program the next time you do a comparison with or subtraction from another datetime.




Show Original Post


20.02.2026 20:10
treyhunner (@treyhunner@mastodon.social)

Python Tip #51 (of 365):

Consider replacing slices with extended tuple unpacking.

Instead of this:
command = tokens[0]
args = tokens[1:]

Consider this:
command, *args = tokens

Or maybe even this (see tip 49):
[command, *args] = tokens

Using traditional tuple unpacking requires knowing the size of the iterable you're unpacking.

Extended tuple unpacking (with a *) allows unpacking an iterable of an unknown size.




Show Original Post


20.02.2026 19:43
mopicmp (@mopicmp@mastodon.social)

Python Tip: F-String Debugging

x = 42
print(f'{x = }') # Output: x = 42
print(f'{len(data) = }') # Output: len(data) = 15

Add = after a variable in an f-string to print both the expression and its value. Game-changer...

raccoonette.gumroad.com/l/Pyth




Show Original Post


20.02.2026 19:43
mopicmp (@mopicmp@mastodon.social)

Python Tip: Multiple Assignment

# Swap without temp variable
a, b = b, a

# Multiple returns
def min_max(lst):
return min(lst), max(lst)

lo, hi = min_max([3,1,4,1,5])

Python's tuple packing/unpacking makes swaps and multiple returns elegant.

raccoonette.gumroad.com/l/Pyth




Show Original Post


20.02.2026 19:41
JGraber (@JGraber@mastodon.social)

#Python Friday #319: Testing Trading Algorithms: MACD

pythonfriday.dev/2026/02/319-t




Show Original Post


1 ...450 451 452 453 454 455 456 457 458 459 460 ...1590
UP