python

Back Open Paginator
10.03.2026 18:43
treyhunner (@treyhunner@mastodon.social)

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=", ")




Show Original Post


10.03.2026 18:32
sharlatan (@sharlatan@mastodon.social)

is available in

codeberg.org/guix/guix/pulls/6

Thanks for guidance and review!




Show Original Post


10.03.2026 17:58
djangonews (@djangonews@mastodon.social)

💼 [Jobs] Solutions Architect - Python (Client-facing)

djangojobboard.com/1303/soluti




Show Original Post


10.03.2026 17:52
habr (@habr@zhub.link)

Шаблонный сервис на FastAPI

Я всячески люблю, когда разработка идёт предсказуемо – и многое для этого делаю. Давно хотел написать пост о важности шаблонного сервиса, но не было хорошего примера под рукой. И тут мой коллега выложил наш шаблонный сервис на FastAPI, который мы долгое время использовали и развивали. Так зачем же нужен шаблонный сервис?

habr.com/ru/articles/1008740/

#fastapi #python #разработка




Show Original Post


10.03.2026 17:32
aidailypost (@aidailypost@mastodon.social)

🚀 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!

🔗 aidailypost.com/news/python-se





Show Original Post


10.03.2026 17:30
Reuven (@Reuven@fosstodon.org)

#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!





Show Original Post


10.03.2026 17:18
zurich_pyladies (@zurich_pyladies@mastodon.social)

Just one week to go 🙌

Join us on March 17th at @zbzuerich and get inspired by Stefanie Wedel's book recommendation app NarraLune 📖 📚🌛

meetup.com/pyladies-zurich/eve




Show Original Post


10.03.2026 17:17
mr_daemon (@mr_daemon@untrusted.website)

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.

github.com/mrdaemon/exosphere/

#exosphere #linux #unix #openbsd #freebsd #homelab #SRE #python




Show Original Post


10.03.2026 17:01
PythonPeak (@PythonPeak@mastodon.social)

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

youtube.com/watch?v=hJICHY-LMcM




Show Original Post


10.03.2026 16:51
hugovk (@hugovk@mastodon.social)

🐍🚀 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.

discuss.python.org/t/python-3-

☃️ Just one alpha left until the feature freeze! Core team: get your PEPs in!

#Python #Python315 #release PEP810 #LazyImports #PEP814 #frozendict




Show Original Post


10.03.2026 16:31
feed (@feed@feedsin.space)

Python 3.15.0a7

Release date: 2026-03-10 14:38:24+00:00

python




Show Original Post


10.03.2026 16:01
humanhorseshoes (@humanhorseshoes@mastodon.world)

RE: mastodon.social/@realTuckFrump

#python is behind everything




Show Original Post


1 ...349 350 351 352 353 354 355 356 357 358 359 ...1592
UP