#Python Friday #323: Add the #LLM to the Python Friday #RAG - #ai
https://pythonfriday.dev/2026/03/323-add-the-llm-to-the-python-friday-rag/
Hey, in light of https://github.com/encode/httpx/discussions/3784 , does anyone know of how to get in touch or give feedback?
I guess there's a stackoverflow tag
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.
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.
https://www.linuxnorth.org/raspisumpv2/
#python #flask #linux #foss #opensource #uPlot
Tom Dörr (@tom_doerr)
py2many 프로젝트가 소개되었으며, Python 코드를 Rust·C++·Go로 변환(transpile)할 수 있습니다. 다중 언어 포팅과 성능 최적화를 돕는 오픈소스 도구로 주목할 만합니다.
https://x.com/tom_doerr/status/2034999429523021946
#py2many #python #rust #go #opensource
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().
🤖🐍 #OpenAI домовилась про придбання #Astral - розробника інструментів, які вже стали помітними у #Python -спільноті їх одразу інтегрують у #Codex.
Фактично OpenAI підсилює свій продукт для програмування, a Codex, між іншим, вже має понад 2 млн користувачів на тиждень.
На фоні конкуренції з #Anthropic це виглядає як стратегічний крок у боротьбі за розробників.
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:]

Want to keep up with the latest #Python events and news in #Texas? Sign up for the #PyTexas newsletter today!
https://pytexas.org/newsletter

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
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. 🫠
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: https://killbait.com/es/curso-online-gratuito-de-python-de-stanford-con-certificado-y-proyecto-final/?redirpost=5b5941db-0b16-461a-a1a8-e37c4a790f4b
#informática #python #curso #stanford