Hacker GitHub

← All repos

dosisod/refurb

View on GitHub ↗ ★ 2,534 Python

A tool for refurbishing and modernizing Python codebases

4 mentions on Hacker News by 2 people: 1 story, 3 comments · first 2022-09-28 · latest 2022-09-28

Mentions per year 4 mentions · busiest year 2022 (4)
20082026
  1. …use a match statement vs a normal if/else statement. [0]: https://youtu.be/ASRqxDGutpA?t=470 [1]: https://github.com/dosisod/refurb/blob/master/refurb/checks/...
  2. …about this project is how the check() functions are loaded based off the type of the node argument: https://github.com/dosisod/refurb/blob/master/refurb/loader.... This also supports type unions, so you can register your check for binary…
  3. …that makes extensive use of the new Python match: statement introduced in Python 3.10 - example: https://github.com/dosisod/refurb/blob/master/refurb/checks/...