python

Back Open Paginator
20.02.2026 08:50
mopicmp (@mopicmp@mastodon.social)

Python Tip: Dictionary Merge (|)

defaults = {'color': 'blue', 'size': 10}
user = {'color': 'red'}
final = defaults | user
# {'color': 'red', 'size': 10}

Python 3.9+ lets you merge dictionaries with the | operator. Clean, readable, Pythonic.

raccoonette.gumroad.com/l/Pyth




Show Original Post


20.02.2026 07:36
247CodeGirl (@247CodeGirl@mastodon.social)

Season 1 Lesson 4 Part 1 - Your First Steps - Python Can Pick - Numbers for You





Show Original Post


20.02.2026 06:45
IllestPreacha (@IllestPreacha@post.lurk.org)

SymbolicGlitch2

Blogpost: blog.illestpreacha.com/codejou

Coded #python + #Glitch

#creativecoding
#Grids
#asciiart
#ascii
#Worldbuilding
#visualpoetry
#glitchart
#creativecodeart





Show Original Post


20.02.2026 05:56
sayzard (@sayzard@mastodon.sayzard.org)

AA (@measure_plan)

하키용 컴퓨터 비전 모델을 개발 중이며 현재 선수와 퍽 추적은 동작한다고 보고. 통계 산출과 카메라 모션 보정은 개선이 필요하며, Roboflow Rapid, SAM3, Python을 사용해 구축했음을 밝힘. 해당 워크플로우는 다른 종목에도 적용 가능하다고 언급.

x.com/measure_plan/status/2024

#computervision #roboflow #sam #python #sportsanalytics




Show Original Post


20.02.2026 03:07
hackernoon (@hackernoon@mas.to)

Replace custom LLM wrappers with 7 production-tested Python libraries. Covers LiteLLM, Instructor, FastMCP, PydanticAI, tiktoken, and more with code examples. hackernoon.com/7-essential-ai- #python




Show Original Post


20.02.2026 02:52
northernscrub (@northernscrub@m.dollha.us)

I have a python script running as a system service. When it crashes, as it sometimes does, it does not seem to restart. I have Restart=always and RestartSec=10 in the unit file. What else should I be doing?

#python #systemd #linux




Show Original Post


20.02.2026 02:45
r (@r@fed.brid.gy)

First @jupyter.org@bsky.brid.gy JupyterLite #Python notebook for serverless, in-browser #SageMath computations in algebraic combinatorics, using passagemath-combinat compiled to #WebAssembly with @emscripten.org@bsky.brid.gy passagemath.org/passagemath-... #OpenSource #Mathematics





Show Original Post


20.02.2026 02:21
ricko (@ricko@tech.lgbt)

Okay. Brain mush. No more #Python for today.

Takeaways:

I dunno. I think I'm missing some critical point. I'll try again tomorrow.




Show Original Post


20.02.2026 01:41
stib (@stib@aus.social)

Are there any folx here doing python scripting in Helix? Bonus points if it's for Krita. I'm trying to set up my development environment, and have found this autocomplete file generator, but I don't know how to use the pthon file that it generates.
So far I've got ruff going and set up a venv in my code directory, with a requirements.txt file that I made using `pip3 install krita; pip3 freeze > requirements.txt`. But I'm kinda lost at this point.
This is what the autocomplete file looks like
github.com/scottpetrovic/krita

#Python #Helix #Krita #AskFedi #FediTechSupport




Show Original Post


20.02.2026 01:29
rzeta0 (@rzeta0@mathstodon.xyz)

Looking forward to doing an intro talk on

The Grammar of Graphics (with python)

at the next PyData Exeter

meetup.com/pydata-exeter/event

#pydata #dataviz #python #grammarofgraphics




Show Original Post


19.02.2026 23:35
ericapisani (@ericapisani@hachyderm.io)

✍️ New blog post: I built the same project twice - once from a blank canvas with an AI coding assistant, and once with some initial structure in place first.

The results were pretty different. Wrote up what I learned:

www.ericapisani.dev/give-your-ai-coding-assistant-something-to-work-with-a-case-study/

#SoftwareDevelopment #AITools #Python




Show Original Post


19.02.2026 23:34
bronsen (@bronsen@chaos.social)

mein noch-nicht-fertiges Python-Tool lässt sich jetzt per pip installieren:

python -m pip install --index-url code.c-base.org/api/packages/i teilchensammler-cli

For more information, please re-read: code.c-base.org/infuanfu/-/pac

Als nächstes bau ich ein just-Rezept was mir: die Version bumpt, die git-Tag antackert, die wheels rundmacht, den ganzen Haufen an die richtigen Stellen hochlordet, den Newsletter triggert und die Globaldominanz für mich übernimmt

#python #textual #just




Show Original Post


1 ...455 456 457 458 459 460 461 462 463 464 465 ...1589
UP