python

Back Open Paginator
20.03.2026 20:03
JGraber (@JGraber@mastodon.social)

Friday #323: Add the to the Python Friday -

pythonfriday.dev/2026/03/323-a




Show Original Post


20.03.2026 19:28
astraluma (@astraluma@tacobelllabs.net)

Hey, in light of github.com/encode/httpx/discus , does anyone know of how to get in touch or give feedback?

I guess there's a stackoverflow tag

#Python #HTTPX




Show Original Post


20.03.2026 18:44
encthenet (@encthenet@flyovercountry.social)

More python stupidity. The mmap object behaves like a bytes array in that mo[5] returns an int and slices are a byte string, but if you pass the mmap object to sum, unlike a byte array which sums the values, the mmap throws an error because it's iterator returns a byte string of a single character instead of an int.

#Python




Show Original Post


20.03.2026 17:55
alaudet (@alaudet@fosstodon.org)

Raspi-Sump Version 2 Web Page is now online. It is currently at version 2.0rc1

Raspi-Sump is a sump pit water level monitoring system that uses a #RaspberryPi and an HC-SR04 or JSN-SR04T ultrasonic sensor. It monitors the water level in your sump pit and alerts you when water rises above a threshold — an early warning system for sump pump failures.

linuxnorth.org/raspisumpv2/

#python #flask #linux #foss #opensource #uPlot




Show Original Post


20.03.2026 17:49
sayzard (@sayzard@mastodon.sayzard.org)

Tom Dörr (@tom_doerr)

py2many 프로젝트가 소개되었으며, Python 코드를 Rust·C++·Go로 변환(transpile)할 수 있습니다. 다중 언어 포팅과 성능 최적화를 돕는 오픈소스 도구로 주목할 만합니다.

x.com/tom_doerr/status/2034999

#py2many #python #rust #go #opensource




Show Original Post


20.03.2026 17:33
treyhunner (@treyhunner@mastodon.social)

Python Tip #79 (of 365):

Don't use strip if you just need to remove a single character.

To remove a single trailing newline, instead of rstrip:
line = line.rstrip("\n")

Use removesuffix:
line = line.removesuffix("\n")

Using removesuffix() hints that there should only ever be one character removed. Of course, if our string might have more than one newline, then rstrip would be better.

But for removing a single character from the end of a string, use removesuffix().

#Python #DailyPythonTip




Show Original Post


20.03.2026 17:31
AndriiKuznietsov75 (@AndriiKuznietsov75@social.kyiv.dcomm.net.ua)

🤖🐍 #OpenAI домовилась про придбання #Astral - розробника інструментів, які вже стали помітними у #Python -спільноті їх одразу інтегрують у #Codex.

Фактично OpenAI підсилює свій продукт для програмування, a Codex, між іншим, вже має понад 2 млн користувачів на тиждень.

На фоні конкуренції з #Anthropic це виглядає як стратегічний крок у боротьбі за розробників.




Show Original Post


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

Want to retrieve a slice from a string column in your #Python #Pandas data frame? Use .str.slice:

df['a'].str.slice(1, 10) # or .str[1:10]
df['a'].str.slice(1, 10, 2) # or .str[1:10:2]
df['a'].str.slice(None, 10) # or .str[:10]
df['a'].str.slice(1, None) # or .str[1:]





Show Original Post


20.03.2026 17:30
pytexas (@pytexas@fosstodon.org)

Want to keep up with the latest #Python events and news in #Texas? Sign up for the #PyTexas newsletter today!

pytexas.org/newsletter





Show Original Post


20.03.2026 17:20
astraluma (@astraluma@tacobelllabs.net)

On my wishlist is true cross platform async file io in #Python

ioring on Linux, completion ports on Windows, whatever on Mac (kqueue, I guess)

No more dispatching to threads




Show Original Post


20.03.2026 16:50
zeab (@zeab@fosstodon.org)

Oh no, #astral got acquired by #openai. Something had to give. I think the tools astral made are truly great changing for #python. But now with this acquisition... Color me surprised if #OpenAI does more of the plans astral had. 🫠

astral.sh/blog/openai




Show Original Post


20.03.2026 16:44
killbait (@killbait@masto.es)

Curso online gratuito de Python de Stanford con certificado y proyecto final

📰 Título original: Stanford ofrece su curso de Python gratis

🤖 IA: Es clickbait ⚠️
👥 Usuarios: Es clickbait ⚠️

Ver resumen IA completo: killbait.com/es/curso-online-g

#informática #python #curso #stanford




Show Original Post


1 ...287 288 289 290 291 292 293 294 295 296 297 ...1596
UP