Advanced parsing of structured data using Python's new match statement - Marc-André Lemburg

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024
  • Advanced parsing of structured data using Python's new match statement - Marc-André Lemburg - PyCon Italia 2024
    Elevator Pitch:
    The `match` statement was introduced in Python 3.10, but has not yet seen wide adoption. This talk will highlight practical use cases for parsing JSON, XML and ASTs, and compare expressiveness and performance to the classic if-elif-else approach.
    Description:
    The `match` statement was introduced in Python 3.10, but has not yet seen wide adoption.
    In this talk, I'd like to show case a few more advanced use cases to demonstrate it's expressiveness and versatility, compared to classic parsers using if-elif-else chains.
    We will have a look at parsing JSON, XML and ASTs, and also compare performance to the classic parsing strategy.
    Knowledge of how the `match` statement works and familiarity with at least one of JSON, XML and ASTs are prerequisite for this talk.
    Learn more: 2024.pycon.it/...
    #CPython #BestPractice #CleanCode #Abstractions #Algorithms

Комментарии •