this post was submitted on 23 Aug 2023
144 points (90.4% liked)

Programmer Humor

31798 readers
277 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
[–] [email protected] 19 points 1 year ago* (last edited 1 year ago) (1 children)

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

Here you go.

[–] [email protected] 8 points 1 year 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"

[–] [email protected] 1 points 1 year ago