this post was submitted on 23 Aug 2023
134 points (90.9% liked)

Programmer Humor

32410 readers
1 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Asudox@lemmy.world 15 points 2 years ago* (last edited 2 years ago) (1 children)

def piss(): pass; piss = piss()

Here you go.

[–] egeres@lemmy.world 6 points 2 years ago (1 children)

But actually, You can just replace that line with piss = None, assigning piss = piss() does not invoke the former method when writing the new variable "standalone"

[–] Asudox@lemmy.world 1 points 2 years ago