python

Back Open Paginator
06.03.2026 16:15
victorhck (@victorhck@mastodon.social)

Python Software Foundation -

es una organización sin fines de lucro dedicada al lenguaje de programación , constituida el 6 de marzo de 2001

es.wikipedia.org/wiki/Python_S




Show Original Post


06.03.2026 16:11
feed (@feed@igeek.gamer-geek-news.com)

📰 5 Powerful Python Decorators to Optimize LLM Applications

Learn these five Python decorators based on diverse libraries, that take particular significance when used in the context of LLM-based applications.

📰 Source: KDnuggets
🔗 Link: https://www.kdnuggets.com/5-powerful-python-decorators-to-optimize-llm-applications

#Python





Show Original Post


06.03.2026 15:59
mopicmp (@mopicmp@mastodon.social)

Python Tip: String join() Performance

# Slow: O(n^2)
result = ''
for s in strings:
result += s

# Fast: O(n)
result = ''.join(strings)

str.join() is O(n) while += concatenation is O(n^2). For 10,000 strings, join() is 100x faster.

raccoonette.gumroad.com/l/Pyth




Show Original Post


06.03.2026 15:58
mopicmp (@mopicmp@mastodon.social)

Python Tip: Ternary Expression

status = 'even' if x % 2 == 0 else 'odd'
result = value if value is not None else default

Python's ternary operator is readable and concise. Replaces simple if/else blocks.

raccoonette.gumroad.com/l/Pyth




Show Original Post


06.03.2026 15:47
laexperimental (@laexperimental@mastodon.social)

Ya esta disponible La Experimental #24:

🛠️ App electrónica
🧠 Tarjetas de estudio inteligentes
🕒 App de productividad
💻 CLI google workspace
📚 Creación de roadmaps de formación con AI
🐍 Patrones Django
💾 Sistema de almacenamiento distribuido
🤖 IA skills obsidian
🌩️ Habit Tracker selfhosted

open.substack.com/pub/laexperi




Show Original Post


06.03.2026 15:46
Ant8e (@Ant8e@fosstodon.org)

So, I’ve been laid off and I’m currently searching for a new job.

I have been a professional software developer and architect for the past 30 years. My experience mostly lies in the JVM world, mostly #scala in the last decade, and #java before that . I love programming languages and I can also be efficient in #kotlin, #python, #javascript, #typeScript, #rust

#jobsearch




Show Original Post


06.03.2026 15:44
coldwave (@coldwave@mastoart.social)

I made a #python random character generator script. Then I made an extension for fantasy species and traits. Then I made another script to suggest how to draw this character.
Lots more to add but it basically works.





Show Original Post


06.03.2026 15:42
habr (@habr@zhub.link)

Darts: библиотека для временных рядов

В Python хватает инструментов для работы с временными рядами, но обычно приходится жонглировать тремя-четырьмя пакетами с разными API. Darts — библиотека, которая собирает всё в одном месте: статистические модели, градиентный бустинг, нейросети — и работает по знакомой схеме fit() / predict() . Сегодня разберём её подробно: что умеет, где удобна, как использовать в задачах.

habr.com/ru/companies/otus/art

#python #darts




Show Original Post


06.03.2026 15:40
brass75 (@brass75@twit.social)

Me: Does anyone know why each call to float('nan') gives a different instance?
#Python Core Devs: discuss.python.org/t/question-

I guess I have a lot more fodder than I bargained for for that talk I'm working on.




Show Original Post


06.03.2026 15:34
mopicmp (@mopicmp@mastodon.social)

Python Tip: dataclasses

from dataclasses import dataclass

@dataclass
class Point:
x: float
y: float

p = Point(1.0, 2.0)
print(p) # Point(x=1.0, y=2.0)

dataclasses auto-generate __init__, __repr__, __eq__ and more. Stop writing boilerplate.

raccoonette.gumroad.com/l/Pyth




Show Original Post


06.03.2026 15:34
mopicmp (@mopicmp@mastodon.social)

Python Tip: os.scandir() Speed

import os
# 20x faster than os.listdir() for stat operations
for entry in os.scandir('/path'):
if entry.is_file():
print(entry.name, entry.stat().st_size)

os.scandir() caches file metadata during iteration. Up to 20x faster than listdir() + stat() calls.

raccoonette.gumroad.com/l/Pyth




Show Original Post


06.03.2026 15:32
habr (@habr@zhub.link)

Pandas: 4 вопроса, которые мучают 51% Python-разработчиков — и их правильные ответы

По данным Stack Overflow Developer Survey, pandas — самая ищемая Python-библиотека. Разбираем четыре топовых вопроса: итерация по строкам, переименование колонок, удаление NaN и фильтрация. Для каждого — несколько способов с бенчмарком и рекомендацией «как надо делать в 2026».

habr.com/ru/articles/1007452/

#pandas #python #python3




Show Original Post


1 ...370 371 372 373 374 375 376 377 378 379 380 ...1592
UP