Also, do y’all call main() in the if block or do you just put the code you want to run in the if block?

  • Laurel Raven@lemmy.zip
    link
    fedilink
    English
    arrow-up
    37
    ·
    2 days ago

    One thing I really dislike about Python is the double underscore thing, just really looks ugly to me and feels excessive. Just give me my flow control characters that aren’t whitespace

    • atx_aquarian@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      2 days ago

      I’m at peace with balanced underscores (like “dunder name equals dunder main”) and the internal ones for snake case, but in the unbalanced ones (prefixing unders and dunders for pseudo-private) still bug me. But at least, conventionally, it’s visually the same idea as Hungarian notation.