BLUE
TH
Trey Hunner
@trey.io
Python & Django team trainer I help folks sharpen their Python skills with PythonMorsels.com 🐍🍪 YIMBY. I'm trying to eat more ethically.
174 followers62 following20 posts
THtrey.io

A few unnecessary Python comprehensions for you: new_list = [x for x in old_iterable] new_dict = {k: v for k, v in old_dict.items()} Those are equivalent to: new_list = list(old_iterable) new_dict = dict(old_dict) More on overusing comprehensions in #Pythontreyhunner.com/2019/03/abus...

1

LLlleites.bsky.social

Ruff has rules for this, well, ruff has rules for everything!

1
TH
Trey Hunner
@trey.io
Python & Django team trainer I help folks sharpen their Python skills with PythonMorsels.com 🐍🍪 YIMBY. I'm trying to eat more ethically.
174 followers62 following20 posts