I think some raised points are relevant…

  • @[email protected]
    link
    fedilink
    41 year ago

    Those doesn’t break backwards compatibility though. Naturally you can’t use match with a python 3.7 interpreter, but what scripts written for python 3.7 wouldn’t work with a 3.11 interpreter?

    I haven’t encountered that issue before, so I’m curious what those problems OP have encountered looks like.

    • Turun
      link
      fedilink
      11 year ago

      Huh, ok. I thought something like match = 0 in an old script might break a more recent version.

      But you may very well be correct.

      • @[email protected]
        link
        fedilink
        1
        edit-2
        1 year ago

        match isn’t a protected keyword like if is.

        match = 0
        match match:
            case 0:
                print(0)
            case _:
                print(1)
        

        Is legal and will give print out 0.

        • Turun
          link
          fedilink
          11 year ago

          Well, today I learned. Thanks for pointing it out.