python

Back Open Paginator
09.02.2026 19:32
pkw (@pkw@snac.d34d.net)
My wiki is written in python/django using django tree queries.

I wish it wasn't written in python.

Python culture is just java culture previously.
Corporate sponsorship ruins everything.

I mean #rust is just #java and #python mixed together.

[runs away]



Show Original Post


09.02.2026 19:19
absulit (@absulit@mastodon.social)

Don't rely on an external agent, being that a human or a to do your work, because in the end it is you who are responsible.




Show Original Post


09.02.2026 19:17
villares (@villares@ciberlandia.pt)

Hoje é dia de #Python Lab! Vamos conversar sobre dados georreferenciados e #OSMnx 19h no @garoa #hackerspace #SãoPaulo





Show Original Post


09.02.2026 19:16
gilesgoat (@gilesgoat@toot.wales)

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.




Show Original Post


09.02.2026 19:14
absulit (@absulit@mastodon.social)

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




Show Original Post


09.02.2026 19:12
15r10nk (@15r10nk@fosstodon.org)

Thank you very much,
@tiangolo
, for your support ♥️

New cool inline-snapshot features are on the way.

#python #sponsored





Show Original Post


09.02.2026 18:47
treyhunner (@treyhunner@mastodon.social)

RE: mastodon.social/@bmispelon/116

Test your mental model of Python's import system. 🤨




Show Original Post


09.02.2026 18:39
melissawm (@melissawm@pynews.com.br)

Bora galera?

A Chamada de Atividades da Python Brasil 2026 está aberta -> talks.python.org.br/pybr26/cfp

Mais informações em 2026.pythonbrasil.org.br/

#python #pybr #cfp




Show Original Post


09.02.2026 18:11
RodStephens (@RodStephens@hachyderm.io)

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.

rodstephensbooks.com/analog_cl

#Python #PIL #Clock #ImageProcessing





Show Original Post


09.02.2026 17:51
driscollis (@driscollis@mastodon.social)

Here's a list of the keywords

It's nice that the number is so small that you can actually probably remember all of them fairly easily.





Show Original Post


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

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!





Show Original Post


09.02.2026 17:23
bmispelon (@bmispelon@mastodon.social)

Can someone explain this 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`?

ImportError
RecursionError
Prints 1
Prints 2




Show Original Post


1 ...513 514 515 516 517 518 519 520 521 522 523 ...1588
UP