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
20082026
-
…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/...
comment by dosisod · 2022-09-28 · in Show HN: Refurb – A tool for refurbishing and modernizing Python codebases -
…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…
comment by dosisod · 2022-09-28 · in Show HN: Refurb – A tool for refurbishing and modernizing Python codebases -
…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/...
comment by simonw · 2022-09-28 · in Show HN: Refurb – A tool for refurbishing and modernizing Python codebases -
▲ 123
Show HN: Refurb – A tool for refurbishing and modernizing Python codebasesstory by dosisod · 2022-09-28 · 105 comments