Vous saviez, vous, qu'on peut mettre les dépendances d'un script Python directement dans le script avec une syntaxe un poil particulière mais pas si ignoble ? Moi non plus. Heureusement, Julia Evans est là ! https://packaging.python.org/en/latest/specifications/inline-script-metadata/#inline-script-metadata #python #dépendances #déclaration #astuce
Similar to my `uvx add-classifiers` and `uvx add-link` mini projects, recently made a `uvx set-license` to simplify that step of setting up new projects.
https://pypi.org/project/set-license/
https://codeberg.org/kfdm/set-license
Light wrapper around https://api.github.com/licenses to add the `license` line to `pyproject.toml` and write to `LICENSE.md`
#python #uvx #pipx
Python + Fortran: Когда numpy уже мало, а C++ ещё страшно. Ускоряем код в 150 раз
Привет, Хабр! В прошлой статье я рассуждал о том, почему Fortran в 2025 году всё ещё жив и даже растет в рейтингах. В комментариях справедливо заметили: «Философия — это хорошо, но как это применить современному разработчику? Зачем мне Fortran, если я пишу на Python?». Это правильный вопрос. Сегодня я хочу ответить на него кодом, а не словами. Я покажу, как использовать Fortran в качестве «числодробилки» для Python. Мы возьмем задачу, на которой интерпретатор Python гарантированно просядет, и ускорим её в ~150 раз, используя инструмент, который уже есть в вашем numpy. Речь пойдет не о замене Python, а о симбиозе: удобный интерфейс Python + сырая мощь Fortran.
https://habr.com/ru/articles/975052/
#программирование #python #fortran #ускорение_кода
Initially was glad about the (future) updates to default python version due to ...
Re: Time to update default #Python version? replied 20251209,
by Matthias A,
https://lists.freebsd.org/archives/freebsd-hackers/2025-December/005330.html
... then the reminder of ever more Rust-y future of the language put the kibosh.
Whatever.
Revisiting "Let's Build a Compiler" - Eli Bendersky's website #python
https://eli.thegreenplace.net/2025/revisiting-lets-build-a-compiler/
Since Perl Weekly Challenge 351's tasks are "Special Average" and "Arithmetic Progression", I decided that this week's musical theme should be Average Person by Paul McCartney.
#PerlWeeklyChallenge #raku #perl #python #elixir
Perl Weekly Challenge: A prett...
Since Perl Weekly Challenge 351's tasks are "Special Average" and "Arithmetic Progression", I decided that this week's musical theme should be Average Person by Paul McCartney.
#PerlWeeklyChallenge #raku #perl #python #elixir
Perl Weekly Challenge: A prett...
@meejah @varx Oh, and if I correctly understand your question: I think what actually happens is you get an error. At least with pip. I don't know offhand if that particular behavior is standardized.
@meejah @varx If it helps: extras (like new-relic in this case) are only directions to the package installer. They're not part of what actually gets installed. So if someone uses pip to install meejah-telemetry[new-relic], after that operation completes, there is (effectively) no record of the fact that the new-relic extra was used in the installation command. There is only an environment that has meejah-telemetry installed and also has some other packages installed, and those other packages happen to include the ones listed in meejah-telemetry's metadata as dependencies of the new-relic extra.
This took me a long time to figure out. It's kind of unintuitive IMO.
Looking for guidance on improving an offline security tool I built https://lobste.rs/s/qhznjj #ai #python #security
My favorite thing about Mistral's new Vibe CLI is simply that it is open source so I can learn from it!
There are so many different frameworks and techniques for agents these days, it is nice to see the plumbing and examine how it works together. (And in #Python, bless you ❤️).
Also excited about the new "Devstral 2" code models. I'm a Mistral fan in general. Mistral:7b is still a great model for tuning.
Advent of Code 2025 Day 9: Movie Theater
This is the one where I wanted to use flood fill but couldn't because Lua.
https://westkarana.blog/2025/12/09/advent-of-code-2025-day-9-movie-theater/
#AdventOfCode #Picotron #Lua #Python