• asudox
    link
    fedilink
    19
    edit-2
    1 year ago

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

    Here you go.

    • @egeres@lemmy.worldOP
      link
      fedilink
      81 year 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”

  • Rikudou_SageA
    link
    161 year ago

    You can use the C preprocessor on any source code.

          • @muzzle@lemmy.world
            link
            fedilink
            11 year ago

            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.

            • @marcos@lemmy.world
              link
              fedilink
              21 year ago

              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.

              • @muzzle@lemmy.world
                link
                fedilink
                21 year ago

                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”

                • @marcos@lemmy.world
                  link
                  fedilink
                  21 year ago

                  I would say that one should expect a high probability of comments on “Programmer Humor” being sarcastic. But deep down I know you are right.