all 15 comments

sorted by: hot top controversial new old
[–] 39 points 2 years ago (1 child)

wym just

def piss(): pass

substitute accordingly 🤙

  • source
  • hideshow 2 child comments
  • [–] [S] 22 points 2 years ago* (1 child)

    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!)

  • source
  • parent
  • hideshow 2 child comments
  • [–] 19 points 2 years ago* (last edited 2 years ago) (1 child)

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

    Here you go.

  • source
  • hideshow 2 child comments
  • [–] 17 points 2 years ago (1 child)

    You can use the C preprocessor on any source code.

  • source
  • hideshow 2 child comments
  • [–] 4 points 2 years ago (1 child)

    Or m4 if you are into it.

    M4 + python would make for a great combo.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 4 points 2 years ago (1 child)
  • [–] 1 point 2 years ago (1 child)

    But...

    What is more pythonic than semantic whitespace?

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 2 years ago (1 child)

    Preprocessing source code is an awful idea and I wish it never became widespread.

    I used to hate semantic whitespace, but I came around when I was using it anyway.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 3 points 2 years ago (1 child)

    Oh bummer... I was so glad believing somebody understood the m4 joke.

    Text preprocessors for code are awful. But the m4 + python combo is so full of landmines that I'm wondering if I should try it.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 2 years ago (1 child)

    I can only defend myself with the good old "it is impossible to write a Y̶o̶u̶T̶u̶b̶e̶ Lemmy comment stupid enough that everyone will realise it is ment to be sarcastic"

  • source
  • parent
  • hideshow 2 child comments