python

Back Open Paginator
28.02.2026 21:41
dum2601 (@dum2601@mastodon.social)

It’s finished, at least partially. These are my web scraping microservices for Brazilian public exams (“concursos”). They are simple: they scrape three sources and return a JSON-like API response with more readable information.
Fell free to see in REPO: github.com/Dum2601/lista-concu







Show Original Post


28.02.2026 21:38
nedbat (@nedbat@hachyderm.io)

Debugging fail in #Python: I had a generator function:

def them():
for thing in some_things():
yield thing

But I wanted to quickly try changing it to use a helper that returned a list, so I just added that code at the top:

def them():
return them_from_somewhere_else()
for thing in some_things():
yield thing

Took me a while to figure out why `list(them())` was always an empty list.




Show Original Post


28.02.2026 21:13
villares (@villares@pynews.com.br)

Preparing a bit for teaching my #CellularAutomata class a few times this semester.#WIP #ConwaysGameOfLife with #numpy
Find the sketch-a-day archives and tip jar at: abav.lugaralgum.com/sketch-a-d
Code for this sketch at: github.com/villares/sketch-a-d #Processing #Python #py5 #CreativeCoding





Show Original Post


28.02.2026 21:05
jobsfordevelopers (@jobsfordevelopers@mastodon.world)

Cloudflare is hiring Security Researcher & Analyst

🔧 #javascript #python #node #securityengineer
🌎 In-Office
⏰ Full-time
🏢 Cloudflare

Job details jobsfordevelopers.com/jobs/sec
#jobalert #jobsearch #hiring




Show Original Post


28.02.2026 20:51
r (@r@fed.brid.gy)

Custom Data Structures in E-Graphs

fed.brid.gy/r/https://uwplse.o




Show Original Post


28.02.2026 20:22
WanderingInDigitalWorlds (@WanderingInDigitalWorlds@sunny.garden)

Right now, I am reading and practicing Variables. It makes sense, I love that W3schools has written concepts in a way that can be easily parsed. The examples are amazing, as I remember my dream was all about using stored Variables in casting spells, by printing an expected outcome into reality. If I think of programming as magic, I might trick my brain into learning a lot!

#Python #Programming




Show Original Post


28.02.2026 20:21
treyhunner (@treyhunner@mastodon.social)

Python Tip #59 (of 365):

Don't use comprehensions to loop.

This is a valid comprehension:

[print(n**2) for n in numbers]

But it's also a misuse of the comprehension syntax.

That comprehension DOES print numbers but it also returns a new list:

>>> [print(n**2) for n in numbers]
4
1
9
16
49
[None, None, None, None, None]

It's a list of None values because the print function returns None (since it DOES a thing instead of RETURNING a thing).

🧵(1/2)

#Python #DailyPythonTip




Show Original Post


28.02.2026 20:18
WanderingInDigitalWorlds (@WanderingInDigitalWorlds@sunny.garden)

While learning the basics of programming, I am looking at other ways of doing the same command in another programming language.

My thoughts as a newbie to any programming languages: Python has a less unhinged approach to a lot of its structure. Other languages get more unhinged in structure, to reach the same expected behavior. Ugh, it's like copying the spell book of a Wizard that is progressively descending into madness due to an astral conference call they had with an Elder Being.

I want to learn Rust too, I can't wait to see how the structure of that looks...To my newbie eyes.

#Python #Learning #programming




Show Original Post


28.02.2026 19:54
owenrlamont (@owenrlamont@fosstodon.org)

Just resurrected an old side project. This is ryl 0.3.4, a rewrite of yamllint in Rust released on PyPi. It aims to be a drop in replacement for yamllint, parsing and discovering files the same. It's not been used in anger and I'm a Rust newbie but please try it and raise bugs! #python #rust

pypi.org/project/ryl/





Show Original Post


28.02.2026 19:38
ramikrispin (@ramikrispin@mstdn.social)

Issue 77 is out!

This week's agenda:
🔹 Open Source of the Week - The g6R project
🔹 New learning resources - Python for AI agents, Pydantic AI, Python R-strings, Kubernetes full course
🔹 Book of the week - Hypermodern Python Tooling by Claudio Jolowicz

ramikrispin.substack.com/p/hyp

#rstats #python #ai #datascience




Show Original Post


28.02.2026 19:33
mikemol (@mikemol@pony.social)

Gabion's really coming along and stabilizing. I'm up to 2300+ tests plus full self analysis and policy auditing, and CI runtimes are stabilizing, and I'm getting successes again after some absolutely enormous refactors structurally eliminating guard branches.

A key note here, I have an LLM doing ~all of the coding at my direction, using Gabion's own output and tooling as feedback and guidance rooted in formal methods. My intent is for it to evolve to a clean stable fixed point, and I encode "is it clean or not" into the Gabion itself." The CI failure rate right now is largely reflective of the LLM forgetting the governance rules. (Espeically the hard requirement of 100% branch covering in tests) Having the tool give rewrite suggestions and further formalizing the repo governance rules will help.

github.com/mikemol/gabion

#programming #python #math #llm





Show Original Post


28.02.2026 19:33
mopicmp (@mopicmp@mastodon.social)

Python Tip: Unpacking with *

first, *middle, last = [1, 2, 3, 4, 5]
# first=1, middle=[2,3,4], last=5

Star unpacking captures multiple values into a list. Works with any iterable.

raccoonette.gumroad.com/l/Pyth




Show Original Post


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