python

Back Open Paginator
20.02.2026 18:38
andrea_navarro (@andrea_navarro@mastodon.social)

Composición y agregación no son lo mismo en POO, aunque muchas veces se usen como sinónimos.

En este artículo explico sus diferencias en Python, cómo se implementan y qué implicaciones tienen en el diseño de clases.

Una distinción conceptual que mejora la calidad del modelado orientado a objetos.

juncotic.com/poo-composicion-y




Show Original Post


20.02.2026 18:36
bc3tech (@bc3tech@hachyderm.io)

via #AIFoundry : Microsoft Agent Framework Reaches Release Candidate

ift.tt/K29Y7nv
#MicrosoftAgentFramework #ReleaseCandidate #GA #Foundry #AIFramework #AgentFramework #SemanticKernel #AutoGen #OpenSource #NET #Python #MultiLanguage #AzureOpenAI #MicrosoftFoundry #AI




Show Original Post


20.02.2026 18:30
pytexas (@pytexas@fosstodon.org)

When you're writing code in a vacuum, it can be difficult to see the forest through the trees.

Tap into the #PyTexas community - a group of compassionate #python developers hosting trainings & other events like #PyTexasConference2026 to support more devs in Texas and beyond. 🚀





Show Original Post


20.02.2026 18:22
247CodeGirl (@247CodeGirl@mastodon.social)

Season 1 Lesson 4 Part 2 - Your First Steps - Casting to int Whole Numbers - in Python





Show Original Post


20.02.2026 18:06
pycascades (@pycascades@hachyderm.io)

🐍 PyCascades 2026 Sprints

Want to collaborate, contribute to open source, and build with the community? 💜

Join us for sprints at PyCascades! Whether you’re new to contributing or experienced, everyone is welcome.

ℹ️ Details 👉 2026.pycascades.com/program/sp

#Python #PyCascades





Show Original Post


20.02.2026 18:04
silentexception (@silentexception@mastodon.social)

It's not just for machine learning, you can do cool stuff to images thanks to this library.

he-arc.github.io/livre-python/





Show Original Post


20.02.2026 18:01
ricko (@ricko@tech.lgbt)

One of the things to took me literal hours to figure out how to do with #Python typing is to describe a function which relies on structural typing, but is also statically typed and not just "well, it works".

Say I'm writing a voting system, and want to work with structures which have a candidate name and vote count. In #TypeScript I would have:

interface HasVotes {
candidate: string;
votes: number;
}

The pythonic equivalent is:

class HasVotes(Protocol):
candidate: str
votes: int

Once I have a list of these, I want to sort that list by descending votes and then ascending candidate.

1/




Show Original Post


20.02.2026 17:52
izoateofficial (@izoateofficial@mastodon.social)

Install PyTorch on Windows 10 (3-Step Pip Guide)

Ready to set up PyTorch? Follow this simple 3-step guide to install via pip with CPU & CUDA support, plus quick verification and error fixes. Start building smarter models today.

izoate.com/blog/3-steps-to-ins




Show Original Post


20.02.2026 17:47
KayOhtie (@KayOhtie@blimps.xyz)

Content warning:Single daily crossword clue spoiler


I get inordinately excited whenever I run into #Python being mentioned in the wild in surprising ways, like today's crossword in USA Today.





Show Original Post


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

When retrieving a slice with loc in #Python #Pandas, the end point is included, highly unusual in Python!

s = pd.Series([10, 20, 30, 40, 50], index=list('abcde'))

s.loc['a':'c'] # a, b, c (inclusive!)
s.iloc[0:2] # a, b (exclusive, like Python)





Show Original Post


20.02.2026 17:11
notes (@notes@other.li)

Updated a Django Project i made 10 Years ago and haven't touched in 6. ​:ablobcatsweatsiphard:

Surprisingly everything went quite straight forward.
:blobcatbongo:

I fucking love
#django and #python:yayblob:




Show Original Post


20.02.2026 17:07
peterdrake (@peterdrake@mstdn.social)

Huh. If you evaluate

type(3)

in a Jupyter notebook, you get

int

but if you do it in an interactive Python console, you get:

<class 'int'>

#python




Show Original Post


1 ...451 452 453 454 455 456 457 458 459 460 461 ...1590
UP