python

Back Open Paginator
23.10.2025 04:30
kkavee (@kkavee@urbanists.social)

WMATA’s Data Lab is hiring summer interns From June–August 2026, need Python skills + passion for public transit

See link in our DIscord. #JobAlert #Transit #Python #transportation #Internship





Show Original Post


23.10.2025 04:26
treyhunner (@treyhunner@mastodon.social)

Exponential time is so unusual I completely left out of my article that discusses time complexity in .

pym.dev/time-complexities/

You might counter with "we could use functools.cache to make it essentially linear time".

You're right. But this non-recursive version is pretty simple!

def fibonacci(n):
a = b = 1
for _ in range(n-1):
a, b = b, a+b
return a

And if you really cared about performance (you shouldn't) there's a constant time version.

pym.dev/p/3b2bt/




Show Original Post


23.10.2025 04:23
treyhunner (@treyhunner@mastodon.social)

Today's tip was about how the only time I recommend using recursion is for creating tree-like structures or traversing tree-like structures.

I didn't make a very good case for this claim and I (rightfully) got some push back on this.

The 2 classic recursion-without-a-tree examples are factorial and fibonacci.

I believe both are better implemented without recursion.




Show Original Post


23.10.2025 03:24
treyhunner (@treyhunner@mastodon.social)

It's possible in Python to dynamically define a function within another function and, we can even return that inner function so that it can be called it later.

Read more 👉 trey.io/4u4pj0




Show Original Post


23.10.2025 03:12
habr (@habr@zhub.link)

Генеративный ИИ как штатный инженер техподдержки: настройка, внедрение, реальные ошибки

Эксперимент, начавшийся как попытка автоматизировать ответы на тикеты, закончился созданием почти самостоятельного "сотрудника" службы поддержки. В статье рассказываю, как мы внедряли генеративную модель в техподдержку, как настраивали контекст, ловили баги. Много практики, немного самоиронии и код, который заставил rethink-нуть наш пайплайн поддержки.

habr.com/ru/articles/959252/

#генеративный_ии #автоматизация_поддержки #LLM #техподдержка #обработка_запросов #python #архитектура #контекстная_память




Show Original Post


23.10.2025 01:26
linuxaddict124 (@linuxaddict124@mastodon.social)

PyFetch 1.1.02 has now been released. Try out PyFetch now! github.com/linuxaddict124/pyfe




Show Original Post


23.10.2025 01:09
glyph (@glyph@mastodon.social)

I'm not sure I can see the ground from the top of this teetering yak stack I am perched atop right now but does anyone happen to know why a fcntl struct on macOS would be laid out with no alignment, at least as per the distinction between the struct module's "=" vs. "@" layout




Show Original Post


23.10.2025 01:09
pythonbrasil (@pythonbrasil@pynews.com.br)

Temos o prazer de anunciar nossa última keynote, Daiane Santos!
Ela é analista de TI da Ação Educativa, coordenadora da Rede comunitária Associação Casa dos Meninos, membro do comitê de Redes Comunitárias desde 2020 e educadora em direitos digitais.

#python #bolhadev #pybr2025 #pythonbrasil





Show Original Post


23.10.2025 00:46
musicman (@musicman@mastodon.social)

/ folks, I could use your help in January (and possibly before & after).

The syllabus will look like this:

2025 - The base
I. AI History - It is difficult for anything else to make sense if people don't understand what is meant when people say AI.
II. Underpinings

January - The work
III. Resource Utilization
IV. Cleanup
V. Tooling
VI.

March - context
VII. Legal Ramifications
VIII. Art?

Details at
friendsofccmusic.org/2025/10/2

As always, plz boost!




Show Original Post


23.10.2025 00:45
leanpub (@leanpub@mastodon.social)

Real World Python leanpub.com/set/leanpub/realwo by Lukas Rieger and Christian Mayer is the featured Track of online courses on the Leanpub homepage! leanpub.com

Kickstart your programming skills now and learn to solve real world problems with Python!





Show Original Post


23.10.2025 00:40
lobsters (@lobsters@mastodon.social)

Reviving, reproducing, and revisiting Axelrod’s second tournament lobste.rs/s/5ymtqa
vknight.org/2025/10/21/rrr.html




Show Original Post


22.10.2025 23:40
lobsters (@lobsters@mastodon.social)

Django 6.0 beta 1 released via @paulox lobste.rs/s/elts07
djangoproject.com/weblog/2025/




Show Original Post


1 ...1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 ...1562
UP