Python Forum
right now a goto would be useable
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
right now a goto would be useable
#3
Feature for Python 3.10: https://www.python.org/dev/peps/pep-0622/

Quote:Abstract

This PEP proposes to add a pattern matching statement to Python, inspired by similar syntax found in Scala and many other languages.

The pattern syntax builds on Python’s existing syntax for sequence unpacking (e.g., a, b = value), but is wrapped in a match statement which compares its subject to several different “shapes” until one is found that fits. In addition to specifying the shape of a sequence to be unpacked, patterns can also specify the shape to be a mapping with specific keys, an instance of a given class with (optionally) specific attributes, a specific value, or a wildcard. Patterns can be composed in several ways.

....
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
right now a goto would be useable - by Skaperen - Jul-09-2020, 04:24 AM
RE: right now a goto would be useable - by DeaD_EyE - Jul-09-2020, 07:49 AM
RE: right now a goto would be useable - by ndc85430 - Jul-09-2020, 12:02 PM
RE: right now a goto would be useable - by Skaperen - Jul-10-2020, 12:49 AM
RE: right now a goto would be useable - by Skaperen - Jul-10-2020, 06:27 PM
RE: right now a goto would be useable - by voidptr - Jul-25-2020, 05:23 AM
RE: right now a goto would be useable - by Skaperen - Jul-26-2020, 12:25 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020