python

Back Open Paginator
02.02.2026 23:26
ehmatthes (@ehmatthes@fosstodon.org)

#Python people, I have a question about names. In the following example, what do you call the first line of this function (everything from `def` through the colon)?

Followup question: When someone refers to the "function definition" does that make you think of the entire function, or just part of it?





Show Original Post


02.02.2026 23:15
rdnielsen (@rdnielsen@floss.social)

The data explorer mapdata.py (pypi.org/project/mapdata/) has been updated to include Akaike's Information Criterion (AIC) and the Kullback-Liebler divergence as diagnostics for the non-negative matrix factorization (NMF) unmixing tool. Mapdata still determines the default number of unmixing end members by using the inflection point in Frobenius norm values. The new diagnostics provide metrics that may justify an alternative to the default.

#DataAnalysis #DataViz #Mapping #FLOSS #FOSS #Python




Show Original Post


02.02.2026 23:07
ploum (@ploum@mamot.fr)

Dear #offline nerds and #commandline lovers: #offpunk 3.0-beta1 has been released.

lists.sr.ht/~lioploum/offpunk-

We need help with testing and translations. Don’t hesitate to come and say hello :

offpunk.net/help.html

#geminiprotocol #gemini #smallweb #smolnet #gopher #python #cli




Show Original Post


02.02.2026 23:06
mattdray (@mattdray@fosstodon.org)

:python: AAAH SNAKES.
* when is holiday? feat #uv: rostrum.blog/posts/2025-08-11-
* note-taking #Python CLI thing: rostrum.blog/posts/2025-08-25-
* more options in notey thing: rostrum.blog/posts/2025-08-30-
* command-line 'slide decks', ppt ded: rostrum.blog/posts/2025-09-18-
* Python CLI 'tamagotchi': rostrum.blog/posts/2025-10-30-
* cheerio my 'most important' #RStats project: rostrum.blog/posts/2025-11-30-
* yet more options in notey wotsit: rostrum.blog/posts/2025-12-28-
* a Python roguelike-like: rostrum.blog/posts/2026-02-01-





Show Original Post


02.02.2026 23:05
BrianAllbee (@BrianAllbee@mastodon.social)

The reluctance of engineers to write documentation is a familiar cliché. It’s tedious, it doesn’t ship features, and there’s a belief that good code should explain itself.

Maybe I’m a fluke. Maybe I’ve just been burned often enough. Either way, I’ve come to see documentation as a stewardship responsibility, not busywork.

(Reflections about Chapter 6 of with , available at tinyurl.com/HOSEWP2)





Show Original Post


02.02.2026 22:52
JdeBP (@JdeBP@mastodonapp.uk)

@ianbetteridge

Taking the 'and' to be a logical operator, obviously 'No.' anded with anything is still 'No.'.

Except in #Python, of course.

(-:

#ComputerProgramming #logic #QuestionHeadlines




Show Original Post


02.02.2026 22:45
lobsters (@lobsters@mastodon.social)

Stelvio: ship Python to AWS lobste.rs/s/2yk8ao
github.com/stelviodev/stelvio




Show Original Post


02.02.2026 22:01
TechKeysX (@TechKeysX@mastodon.social)

S1 EP19 Lab 6 - Machine Learning in Python - Using Python Tuple Methods - in Python





Show Original Post


02.02.2026 21:51
CuratedHackerNews (@CuratedHackerNews@mastodon.social)

Stelvio: Ship Python to AWS

github.com/stelviodev/stelvio




Show Original Post


02.02.2026 21:22
habr (@habr@zhub.link)

CPython — Сборка мусора изнутри, ч.4

Пришло время поговорить о главной функции сборщика мусора в CPython . В предыдущих частях ( 1 , 2 , 3 ) мы говорили о поколениях, инкрементальной и полной сборке мусора — но все они в итоге вызывают главную функцию, которая и реализует основной алгоритм циклического сборщика мусора — находит и разрывает циклы у объектов, которые уже вышли из использования. В первой статье на тему устройства сборщика мусора я написал, что история началась, когда я попробовал исправить ошибку в CPython . И вот, в четвёртой статье, я наконец‑то добрался до функции, в которой была ошибка. Если вам интересно, давайте посмотрим, как работает «сердце» сборщика мусора.

habr.com/ru/articles/992026/

#gc #garbage_collector #python #cpython #reference_counting




Show Original Post


02.02.2026 20:52
d1cor (@d1cor@mstdn.io)

Invertir en tu conocimiento es la única apuesta segura 🚀

Por los próximos 5 días, todos los cursos de #JuncoTIC están al mejor precio en Udemy!

Si tenés ganas de dominar GNU/Linux, entender cómo funcionan las redes TCP/IP, o desarrollar sitios web con #Python y #Flask, esta es la oportunidad!

👇 Todos los cursos con el descuento acá:

juncotic.com/cursos

Dudas? Otras formas de pago?
💬 info@juncotic.com

#Linux #SysAdmin #IT #python #ssh #nftables #iptables #tcpip #flask #wireshark





Show Original Post


02.02.2026 20:21
treyhunner (@treyhunner@mastodon.social)

Python Tip #33 (of 365):

Don't sleep on Python's keyword arguments / named arguments.

When using the open() function, I recommend specifying the file mode with a keyword argument.

So instead of this:
open(path, "wt")

I recommend writing this:
open(path, mode="wt")

A reader can probably guess the meaning of "wt" more easily when it's specified as a keyword argument.

🧵(1/2)




Show Original Post


1 ...546 547 548 549 550 551 552 553 554 555 556 ...1587
UP