python

Back Open Paginator
28.02.2026 19:33
mopicmp (@mopicmp@mastodon.social)

Python Tip: zip() for Parallel Iteration

names = ['Alice', 'Bob']
scores = [95, 87]
for name, score in zip(names, scores):
print(f'{name}: {score}')

zip() iterates multiple sequences in parallel. Use zip_longest() if sequences have different...

raccoonette.gumroad.com/l/Pyth




Show Original Post


28.02.2026 19:00
us (@us@newsbeep.org)

Florida Family Learns Selling a Nudist Colony Isn’t Easy

Florida real estate doesn’t get much more niche than this: A fading nudist colony carved out of…
#NewsBeep #News #US #USA #UnitedStates #UnitedStatesOfAmerica #Entertainment #nudism #python #Tampa
newsbeep.com/us/496013/





Show Original Post


28.02.2026 17:53
247CodeGirl (@247CodeGirl@mastodon.social)

Season 1 Lesson 5 Part 8 - Your First Steps - Join Method Does NOT Work - in Python





Show Original Post


28.02.2026 17:40
sayzard (@sayzard@mastodon.sayzard.org)

[Show GN: skill로 skill을 고치는 skill을 만들었어요 - 바이브코딩 Python 템플릿

바이브코딩은 Python 프로젝트 템플릿을 관리하는 'skill'을 개발했습니다. 이 도구는 하위 프로젝트에서 발견된 좋은 패턴을 템플릿 레포에 제안하고 검토, 승인 후 전체 프로젝트에 일괄 반영하는 워크플로우를 자동화합니다. 현재는 인간의 개입이 필요하지만, 향후 자가 발전하는 템플릿으로 발전시킬 계획입니다.

news.hada.io/topic?id=27083

#python #template #workflow #automation #developer




Show Original Post


28.02.2026 17:30
Reuven (@Reuven@fosstodon.org)

Reading CSV into #Python #Pandas? Pass header to specify the row containing column names:

pd.read_csv(f, header=3)

No headers at all? Just pass header=None:

pd.read_csv(f, header=None)

Pass a list for multi-indexed column names:

pd.read_csv(f, header=[3, 4])





Show Original Post


28.02.2026 17:07
donkirkby (@donkirkby@hachyderm.io)

Here's a description of some nice features I didn't know about in #PyTest's parameterize() decorator. My favourite is how to avoid really long names for test cases.

nedbatchelder.com/blog/202602/

#python




Show Original Post


28.02.2026 17:01
PythonPeak (@PythonPeak@mastodon.social)

Plasma Waves

25 plasma waves flow down the screen! Python creates smooth wave motion with mathematical precision! 🌊⚡

#python #pythontricks #turtlegraphics #wavepatterns #plasmaeffect #smoothmotion #pythonmath #sinewaves

youtube.com/watch?v=IGs4D_u_3D8




Show Original Post


28.02.2026 16:55
mubergapps (@mubergapps@mastodon.social)

1/2 Picked Pelican for mubergapps.com. Python, old, compiles Markdown into HTML. I looked at the usual options and spent time comparing SPAs vs MPAs and benchmarking a few Python generators.
Pelican wasn't the most exciting one.




Show Original Post


28.02.2026 16:55
villares (@villares@ciberlandia.pt)

I think that maybe I have an idea of improvement for the #Python docs... There is a known, deliberate, hash collision of `` hash(-1)` and ` hash(-2), because -1 is a "special" value. These are handled graciously by dicts and sets, but if you are calling ` hash()` yourself you should be aware of it... I don't remember where I learned about this, but the knowledge helped a few times when making my custom ` __hash__()` for objects with tuples containing -1 and -2...




Show Original Post


28.02.2026 16:07
zulfian (@zulfian@mastodon.social)

Munquet 0.2.1 just landed on Flathub 🚀

Fixed a small race condition when canceling a conversion — turns out the process could finish right before you clicked “Yes” 😅

Two lines later… all good.

flathub.org/en/apps/io.gitlab.




Show Original Post


28.02.2026 15:31
mahlzahn (@mahlzahn@nerdculture.de)

“A historic moment for Censor”

#Censor – the PDF redaction tool for the @gnome desktop – comes now with a new edit history. It allows you to undo and redo redactions using the right-click context menu or keyboard shortcuts. Also, a bug that prevented repeated saving to the same file path was fixed.

Get the new version from @flathub: flathub.org/apps/page.codeberg, and find it on @Codeberg: codeberg.org/censor/Censor/rel

You may now talk Chinese, Dutch, English, Estonian, Finnish, French, German, Italian, and Vietnamese with Censor (thanks a lot to the translators!). If your language is missing from this list I invite you to contribute at Codeberg Translate: translate.codeberg.org/engage/

#censorship #redaction #PDF #Codeberg #Flatpak #Flathub #GNOME #python #MuPDF #PyMuPDF #Linux




Show Original Post


28.02.2026 14:59
danzin (@danzin@mastodon.social)

The most important and tedious part of labeille is the registry.

So far with 350+ PyPI packages, each with a repo URL, install and test commands, metadata about whether it has C extensions, what Python versions to skip, and whether it needs xdist disabled.

"Just run pytest" doesn't work for all packages. Some need specific test markers or editable installs. Some have tests that might hang. Some need extra dependencies that aren't in their dev requirements.




Show Original Post


1 ...408 409 410 411 412 413 414 415 416 417 418 ...1591
UP