Mi primer CRUD con Python https://myblog.clonbg.es/mi-primer-crud-con-python/ #Programación #Python #PyQT https://clonbg.es

KERNEL PANIC !
My Ubuntu VM just started panicking while doing some minor Python debugging .... #Grrrrrrrr
or if you are a python user, go ahead and "import antigravity" if you weren't already familiar with the easter egg.
If you are not familiar with the reference, you're one of today's lucky 10,000!
un article expliquant différents concepts ou approches en #Python : https://mathspp.com/blog/a-generator-duck-typing-and-a-branchless-conditional-walk-into-a-bar
- les générateurs pour des itérations "à la demande" plus légères en mémoire
- le duck-typing : l'article parle des protocoles sans mentionner cette abstraction pour faire du typage structurel (https://docs.python.org/3/library/typing.html#typing.Protocol, https://realpython.com/python-protocol/)
- des syntaxes pour des traitements conditionnels sans branches if-else
- EAFP vs LBYL (try-except vs if ... do) : notamment "with contextlib.suppress(ValueError)"
💻 Python y el Futuro Tech
Python no es solo un lenguaje; es una filosofía en el desarrollo de software. Su legibilidad y vasta librería lo hacen esencial para IA, Machine Learning y Automatización. Si eres Ingeniero en Sistemas, dominarlo es clave para construir el futuro digital. ¡Sigue aprendiendo y creando!
#Python #IngenieriaEnSistemas #ML #DesarrolloDeSoftware
This discussion of a "pre-proposal" for #Rust in the #CPython core has been an interesting one to watch over the last 24 hours, although I'm sure there will be lots of chatter yet.
Based on feedback so far, it looks like the focus of the eventual proposal will be on optional extension modules. I think it's a good way to proceed. If such a proposal were accepted it would provide a lot of concrete experience that would be informative to the bigger ideas about integrating Rust in the core.
https://discuss.python.org/t/pre-pep-rust-for-cpython/104906/117
За два дня после Хабра: PWA с офлайном, ветеринарный кабинет и сброс пароля
Два дня назад опубликовал статью про разработку приложения за 5 дней. За это время приложение выросло с версии 0.4.0 до 0.6.0 - добавил PWA с полноценным офлайн-режимом, кабинет для ветеринарных клиник и восстановление пароля. Сто шесть коммитов за два вечера после работы. Рассказываю как это было. Бэрримор, но как?
https://habr.com/ru/articles/967802/
#разработка #диабет #кошка #python #flask #+ #react #fastapi #pwa
LiteLLM: Python SDK and Proxy Server (AI Gateway) to call 100+ LLM APIs in OpenAI (or native) format, with cost tracking, guardrails, loadbalancing and logging #Python #LLM https://github.com/BerriAI/litellm
#30DayMapChallenge - Jour 18 – Hors du monde
Carte d’un ciel nocturne, générée à l’aide d’un script Python qui dessine des étoiles placées aléatoirement de différentes tailles et couleurs. Quelques plus grosses étoiles forment des constellations.

I was tripped by a footgun in #python (at least in version 3.11.2):
a = [2]
a[0 - 1]
I was trying to get the previous value, forgetting that sometimes there was only one value in the list.
However, instead of complaining that there is no item at index -1; it apparently interprets it as the last item in the list, and returns 2.
a[0 - 2] on the other hand, does throw an IndexError…
TIL that pyproject.toml might require one #Python version, but what you actually get also depends on the Python version(s) you have installed.