Hacker GitHub

← All repos

santinic/pampy

View on GitHub ↗ ★ 3,521 Python

Pampy: The Pattern Matching for Python you always dreamed of.

8 mentions on Hacker News by 7 people: 4 stories, 4 comments · first 2018-11-09 · latest 2021-07-09

Mentions per year 8 mentions · busiest year 2018 (5)
20082026
  1. Here is pattern matching as a library that is not built using statements, https://github.com/santinic/pampy Clearly it's possible. It's also more ergonomic than PEP 622.
  2. If you want it today, Pampy does most of it: https://github.com/santinic/pampy Even match on Point(x, y, _)
    comment by csantini · 2020-06-24 · in PEP 622 – Structural Pattern Matching
  3. …someone wrote a proposal or something. Here is actually implemented pattern matching as a library https://github.com/santinic/pampy
    comment by Stormwalker · 2020-01-09 · in Pattern Matching in Ruby 2.7 (2019)
  4. …use `ANY` instead of `_` in the pattern matches, but of course that would not look as clean. [1] https://github.com/santinic/pampy/blob/4c8e6e0cabada82a5ed79...
    comment by bow_ · 2018-12-17 · in Pampy: Pattern Matching for Python
  5. ▲ 126
    Pampy: Pattern Matching for Python
    story by fagnerbrack · 2018-12-16 · 44 comments
  6. ▲ 4
    Pampy: Pattern Matching for Python
    story by pplonski86 · 2018-12-12 · 0 comments
  7. ▲ 3
    Pampy: Pattern Matching for Python
    story by signa11 · 2018-11-10 · 0 comments
  8. ▲ 6
    Pampy: Pattern Matching for Python
    story by csantini · 2018-11-09 · 3 comments