python

Back Open Paginator
10.12.2025 08:19
Riduidel (@Riduidel@framapiaf.org)

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à ! packaging.python.org/en/latest #python #dépendances #déclaration #astuce




Show Original Post


10.12.2025 07:47
kfdm (@kfdm@social.tsun.co)

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.
pypi.org/project/set-license/
codeberg.org/kfdm/set-license

Light wrapper around api.github.com/licenses to add the `license` line to `pyproject.toml` and write to `LICENSE.md`
#python #uvx #pipx




Show Original Post


10.12.2025 07:42
habr (@habr@zhub.link)

Python + Fortran: Когда numpy уже мало, а C++ ещё страшно. Ускоряем код в 150 раз

Привет, Хабр! В прошлой статье я рассуждал о том, почему Fortran в 2025 году всё ещё жив и даже растет в рейтингах. В комментариях справедливо заметили: «Философия — это хорошо, но как это применить современному разработчику? Зачем мне Fortran, если я пишу на Python?». Это правильный вопрос. Сегодня я хочу ответить на него кодом, а не словами. Я покажу, как использовать Fortran в качестве «числодробилки» для Python. Мы возьмем задачу, на которой интерпретатор Python гарантированно просядет, и ускорим её в ~150 раз, используя инструмент, который уже есть в вашем numpy. Речь пойдет не о замене Python, а о симбиозе: удобный интерфейс Python + сырая мощь Fortran.

habr.com/ru/articles/975052/

#программирование #python #fortran #ускорение_кода




Show Original Post


10.12.2025 07:34
ax6761 (@ax6761@freeradical.zone)

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,
lists.freebsd.org/archives/fre

... then the reminder of ever more Rust-y future of the language put the kibosh.

Whatever.

#FreeBSD




Show Original Post


10.12.2025 07:20
yee (@yee@g0v.social)

Revisiting "Let's Build a Compiler" - Eli Bendersky's website #python
eli.thegreenplace.net/2025/rev




Show Original Post


10.12.2025 06:34
r (@r@fed.brid.gy)

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...




Show Original Post


10.12.2025 06:34
r (@r@bsky.brid.gy)

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...




Show Original Post


10.12.2025 05:48
diazona (@diazona@techhub.social)

@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.

#Python




Show Original Post


10.12.2025 05:44
diazona (@diazona@techhub.social)

@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.

#Python




Show Original Post


10.12.2025 04:50
lobsters (@lobsters@mastodon.social)

Looking for guidance on improving an offline security tool I built lobste.rs/s/qhznjj




Show Original Post


10.12.2025 04:39
TheServitor (@TheServitor@sigmoid.social)

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.

#mistral #ai #devstral




Show Original Post


10.12.2025 03:38
Tipa (@Tipa@gamepad.club)

Advent of Code 2025 Day 9: Movie Theater

This is the one where I wanted to use flood fill but couldn't because Lua.

westkarana.blog/2025/12/09/adv

#AdventOfCode #Picotron #Lua #Python




Show Original Post


1 ...844 845 846 847 848 849 850 851 852 853 854 ...1572
UP