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...
https://raccoonette.gumroad.com/l/Python-for-Beginners-From-Zero-to-Your-First-Projects
#Python #CodingTips #Programming
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
https://www.newsbeep.com/us/496013/

Season 1 Lesson 5 Part 8 - Your First Steps - Join Method Does NOT Work - in Python #pythonprogramming #vibecoding #python #softwaredeveloper #codingtutorial #dataanalysis #learncoding #pythoncode #dataengineer #jupyternotebook
[Show GN: skill로 skill을 고치는 skill을 만들었어요 - 바이브코딩 Python 템플릿
바이브코딩은 Python 프로젝트 템플릿을 관리하는 'skill'을 개발했습니다. 이 도구는 하위 프로젝트에서 발견된 좋은 패턴을 템플릿 레포에 제안하고 검토, 승인 후 전체 프로젝트에 일괄 반영하는 워크플로우를 자동화합니다. 현재는 인간의 개입이 필요하지만, 향후 자가 발전하는 템플릿으로 발전시킬 계획입니다.
https://news.hada.io/topic?id=27083
#python #template #workflow #automation #developer
Reading CSV into #Python #Pandas? Pass header to specify the row containing column names:
https://pd.read_csv(f, header=3)
No headers at all? Just pass header=None:
https://pd.read_csv(f, header=None)
Pass a list for multi-indexed column names:
https://pd.read_csv(f, header=[3, 4])

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.
https://nedbatchelder.com/blog/202602/pytest_parameter_functions
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
https://www.youtube.com/watch?v=IGs4D_u_3D8
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.
#webdev #pelican #python #staticsite
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...
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.
https://flathub.org/en/apps/io.gitlab.zulfian1732.munquet
#Flatpak #GTK4 #OpenSource #Parquet #DataScience #Linux #Python #PyArrow
“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: https://flathub.org/apps/page.codeberg.censor.Censor, and find it on @Codeberg: https://codeberg.org/censor/Censor/releases/tag/v0.4.0
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: https://translate.codeberg.org/engage/censor
#censorship #redaction #PDF #Codeberg #Flatpak #Flathub #GNOME #python #MuPDF #PyMuPDF #Linux
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.
#Python #PyPI #testing #labeille