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.
https://raccoonette.gumroad.com/l/Python-for-Beginners-From-Zero-to-Your-First-Projects
#Python #CodingTips #Programming
Season 1 Lesson 4 Part 1 - Your First Steps - Python Can Pick - Numbers for You #dataanalysis #codingtutorial #pythoncode #jupyternotebook #dataengineer #vibecoding #learncoding #pythonprogramming #python #softwaredeveloper
SymbolicGlitch2
Blogpost: https://blog.illestpreacha.com/codejourneysymbolsystems
#creativecoding
#Grids
#asciiart
#ascii
#Worldbuilding
#visualpoetry
#glitchart
#creativecodeart

AA (@measure_plan)
하키용 컴퓨터 비전 모델을 개발 중이며 현재 선수와 퍽 추적은 동작한다고 보고. 통계 산출과 카메라 모션 보정은 개선이 필요하며, Roboflow Rapid, SAM3, Python을 사용해 구축했음을 밝힘. 해당 워크플로우는 다른 종목에도 적용 가능하다고 언급.
https://x.com/measure_plan/status/2024601863006421033
#computervision #roboflow #sam #python #sportsanalytics
Replace custom LLM wrappers with 7 production-tested Python libraries. Covers LiteLLM, Instructor, FastMCP, PydanticAI, tiktoken, and more with code examples. https://hackernoon.com/7-essential-ai-engineering-libraries-to-replace-boilerplate #python
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?
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

Okay. Brain mush. No more #Python for today.
Takeaways:
TypedDict correctly. Or if I am, it's unergonomic AF.package.json scripts. Like, everyone still uses make? And global installs of uv? Which seems ... odd, and probably incorrect. Like, how do you do simple one-click "just run all the unit tests" type of stuff in the IDE? Does everyone just have a terminal open all the time?lambda, because stuff like sorted can't just give up on autocomplete ... right?I dunno. I think I'm missing some critical point. I'll try again tomorrow.
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
https://github.com/scottpetrovic/krita-python-auto-complete/blob/master/output/PyKrita.py
#Python #Helix #Krita #AskFedi #FediTechSupport
Looking forward to doing an intro talk on
The Grammar of Graphics (with python)
at the next PyData Exeter
https://www.meetup.com/pydata-exeter/events/313436767/
#pydata #dataviz #python #grammarofgraphics
✍️ 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
mein noch-nicht-fertiges Python-Tool lässt sich jetzt per pip installieren:
python -m pip install --index-url https://code.c-base.org/api/packages/infuanfu/pypi/simple/ teilchensammler-cli
For more information, please re-read: https://code.c-base.org/infuanfu/-/packages/pypi/teilchensammler-cli/0.3.3
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