136
submitted 10 months ago by [email protected] to c/[email protected]
top 9 comments
sorted by: hot top controversial new old
[-] [email protected] 37 points 10 months ago

wym just

def piss(): pass

substitute accordingly ๐Ÿค™

[-] [email protected] 21 points 10 months ago* (last edited 10 months ago)

Now that I think about it, you can just write piss and it counts as writing a variable but not assigning it ๐Ÿ™ƒ (after having assigned piss at the beginning of the code!)

[-] [email protected] 19 points 10 months ago

So you're saying we just have to piss at the very beginning of the code?

[-] [email protected] 10 points 10 months ago

I bet this was in the original draft of the PEP-8 hahah

[-] [email protected] 18 points 10 months ago* (last edited 10 months ago)

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

Here you go.

[-] [email protected] 7 points 10 months ago

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] 16 points 10 months ago

You can use the C preprocessor on any source code.

[-] [email protected] 4 points 10 months ago

Or m4 if you are into it.

M4 + python would make for a great combo.

[-] [email protected] 4 points 10 months ago

Please don't.

this post was submitted on 23 Aug 2023
136 points (90.5% liked)

Programmer Humor

31202 readers
1847 users here now

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

Rules:

founded 4 years ago
MODERATORS