Is #Python's asyncio the worst async in the world, or is it just the documentation? I've never managed to successfully use it.
What I'm trying to do today is to run two tasks concurrently, one of which is a server from the `websockets` package, and the other just reads a file periodically. I'm not even trying to share data between them, I can't even just get them both running at the same time.
I'm fairly sure they need to run in separate threads. How do I do that?
py2many is a transpiler of your #Python code to many other languages, such as #rust c++ #go etc.
https://github.com/py2many/py2many
PDM + uv, duo de choc pour vos projets Python
https://www.metal3d.org/blog/2025/pdm-+-uv-duo-de-choc-pour-python/
#python
Still slowly but surely working on my music library sync program, written in Python and Kivy. It's aimed to be like an old school iTunes replacement, but it can sync with any device, not just iPods.
Python Tip: slots for Memory
@dataclass(slots=True)
class Pixel:
x: int
y: int
color: str
# Uses 40% less memory than regular class
Adding slots=True to dataclasses prevents __dict__ creation. Saves ~40% memory per instance.
https://raccoonette.gumroad.com/l/Python-for-Beginners-From-Zero-to-Your-First-Projects
#Python #CodingTips #Programming
Python Tip: subprocess.run()
import subprocess
result = subprocess.run(
['git', 'status', '--short'],
capture_output=True, text=True, check=True
)
print(result.stdout)
subprocess.run() is the modern way to call external commands. capture_output + text=True gives...
https://raccoonette.gumroad.com/l/Python-for-Beginners-From-Zero-to-Your-First-Projects
#Python #CodingTips #Programming
📝 New blog post: Introducing FableCast. Fable tales as imagined by AI
FableCast is an AI-powered children's book engine that writes, illustrates, narrates, and translates picture books—fully automated, seven languages, zero human artists harmed.
https://blog.arda.tr/blog/2026-02-11-introducing-fablecast-fable-tales-as-imagined-by-ai
Season 1 Lesson 6 Part 6 - Your First Steps - Shorthand Padding with Zero - within f String in Python #vibecoding #pythonprogramming #codingtutorial #softwaredeveloper #jupyternotebook #dataanalysis #learncoding #pythoncode #dataengineer #python
Sometimes I wonder why I even bother. I mean, people are perfectly happy to let statistical models designed as bullshit generators do their coding. Why do I even bother running their test suites and inspecting the failures as a human, if these tests may well be complete bullshit?
#FreeSoftware #OpenSource #Gentoo #Python #AI #LLM #NoAI #NoLLM #VibeCoding
So I run Fedora desktop...I am looking to maybe have a local AI run that I can chat with about python...I don't care about a fancy GUI..I want it stuck in my terminal. I don't need it to edit my files I can do that. I don't want it on the web or calling home. I want a local interactive python manual.
Anyone have anything that can point me the right way?
#run_local_ai #python #privacy
I am still wary of the ethics of local AI ....if someone has content for that let me know #aiethics
Random #Python question (this is me trying to get more info for a talk I plan on offering to #PyOhio.)
Does anyone know why each call to `float('nan')` generates a different instance?