r/AskComputerScience • u/Malarpit16 • Sep 29 '25
What is the most "pythonic" code you have ever seen or have created?
.
0
Upvotes
r/AskComputerScience • u/Malarpit16 • Sep 29 '25
.
5
u/ghjm MSCS, CS Pro (20+) Sep 29 '25
Like a lot of people, when I was first learning Python (lo these many years ago), I went through a phase where every damn thing just had to be a decorator. That was probably the most Pythonic I ever was.
1
u/thisdude415 Oct 03 '25
One liners using list comprehension are my favorite