Python Tip #69 (of 365):
Joining and then printing? Consider using print() to do your joining instead.
Instead of passing an iterable to the string join method first:
print(", ".join(names))
You could unpack the iterable into a print call and specify a sep:
print(*names, sep=", ")
You can also often remove string conversions (print converts the given values to strings).
So this:
print(", ".join(str(n) for n in numbers))
Can become this:
print(*numbers, sep=", ")
#Python #Polars is available in #Guix
https://codeberg.org/guix/guix/pulls/6641
Thanks #guixrustteam for guidance and review!
💼 [Jobs] Solutions Architect - Python (Client-facing)
https://djangojobboard.com/1303/solutions-architect-python-client-facing-jetbrains/
#Django #Python #Jobs #Hiring #TechIsHiring
Шаблонный сервис на FastAPI
Я всячески люблю, когда разработка идёт предсказуемо – и многое для этого делаю. Давно хотел написать пост о важности шаблонного сервиса, но не было хорошего примера под рукой. И тут мой коллега выложил наш шаблонный сервис на FastAPI, который мы долгое время использовали и развивали. Так зачем же нужен шаблонный сервис?
https://habr.com/ru/articles/1008740/
🚀 Want to run BitNet-b1.58-2B-4T locally? The new setup_env.py script automates a CMake build of the C++ backend, turning Python-driven setup into a fast inference engine. Perfect for hobbyists and researchers eager to experiment with large AI models offline. Dive into the details and see how easy open-source deployment can be! #BitNet #Python #CMake #LocalInference
🔗 https://aidailypost.com/news/python-setupenvpy-builds-bitnet-b158-2b-4t-c-backend-via-cmake

#Python tip: Don't write all 6 comparison methods!
Define __eq__ and __lt__, then add @total_ordering:
from functools import total_ordering
@total_ordering
class C:
def __lt__(self, o): ...
def __eq__(self, o): ...
You get >, >=, <= for free!

Just one week to go 🙌
Join us on March 17th at @zbzuerich and get inspired by Stefanie Wedel's book recommendation app NarraLune 📖 📚🌛
#python #pyladies #womenintech #genderminoritiesintech #LLMs #sql
https://www.meetup.com/pyladies-zurich/events/313510389/
New incremental update to Exosphere, my simple CLI and TUI driven patch reporting application for remote UNIX systems.
Improved vuln.xml handling in the FreeBSD provider, and clearer sudo error messages that point you to the documentation.
https://github.com/mrdaemon/exosphere/releases/tag/v2.4.0
#exosphere #linux #unix #openbsd #freebsd #homelab #SRE #python
Memory Leak Drains Actual Memory
A developer discovers their Python script has a memory leak so severe it's draining their actual brain memory.
#python #coding #memory #developer #programming #leak #performance #bug
https://www.youtube.com/watch?v=hJICHY-LMcM
🐍🚀 Out now: Python 3.15 alpha 7!
This is the first one with lazy imports (PEP 810) and frozendict (PEP 814)! Try it out and give us feedback.
https://discuss.python.org/t/python-3-15-0-alpha-7/106475
☃️ Just one alpha left until the feature freeze! Core team: get your PEPs in!
#Python #Python315 #release PEP810 #LazyImports #PEP814 #frozendict
RE: https://mastodon.social/@realTuckFrumper/116205469475192147
#python is behind everything