Don't rely on an external agent, being that a human or a #AI to do your work, because in the end it is you who are responsible.
#ai #webdev #javascript #python
Hoje é dia de #Python Lab! Vamos conversar sobre dados georreferenciados e #OSMnx 19h no @garoa #hackerspace #SãoPaulo

OK .. let's TRY this .. "for once" calling the experts ( maniacs 😅 ) of #python or whatever .. is there any SIMPLE way one could write a python script that fundamentally all it has to do would be :
1. open a .TXT PLAIN TEXT FILE
2. run 'a set of find and replace of strings' on that file ( i.e. replace all "Bananas" with "Pippo" and all "Pluto" with "Pappine" )
3. save a NEW .TXT file with the modifications after that.
I'd expect "given the power of those languages" something along the CONT.
Years ago I was working on a Python project. That was the backend of an Angular project. I finished my part and I was done, but higher ups decided to move me to the Angular side I didn't know anything about. My coworker knew a great deal of it so I used him as my search engine, I asked him everything, and why not if he was just there. This was nice and all until one day he was gone because he resigned a month before
#webdev #javascript #python #ai
Thank you very much,
@tiangolo
, for your support ♥️
New cool inline-snapshot features are on the way.

RE: https://mastodon.social/@bmispelon/116041593220352595
Test your mental model of Python's import system. 🤨
Bora galera?
A Chamada de Atividades da Python Brasil 2026 está aberta -> https://talks.python.org.br/pybr26/cfp
Mais informações em https://2026.pythonbrasil.org.br/
Use PIL to make an analog clock out of cake slice images in Python
This somewhat silly example demonstrates several useful PIL techniques including image scaling, rotation, and pasting with a transparency mask.
https://rodstephensbooks.com/analog_clock_cake.html
#Python #PIL #Clock #ImageProcessing

Here's a list of the #Python keywords
It's nice that the number is so small that you can actually probably remember all of them fairly easily.

Your #Python function takes a filename and **kwargs. But this raises an error, since "filename" is passed twice:
myfunc('outfile.txt', filename='abcd', x=100)
Solution: Set filename to be positional only:
def myfunc(filename, /, **kwargs):
Now *any* keyword argument works!

Can someone explain this #Python import behavior?
I'm in a directory with 3 files:
a.py contains `A = 1; from b import *`
b.py contains `from a import *; A += 1`
c.py contains `from a import A; print(A)`
Can you guess and explain what happens when you run `python c.py`?