Temporary variables in list comprehensions

Chris Angelico rosuav at gmail.com
Sun Jan 8 23:54:31 EST 2017


On Mon, Jan 9, 2017 at 3:49 PM, Steven D'Aprano
<steve+comp.lang.python at pearwood.info> wrote:
> Helper functions are good. Helper functions that are only used
> *once* are a code smell. *LOTS* of helper functions that are only used once are
> a sign that something is horrible, and it might just be your language...

Agreed, but with a toy example like you posted, it's impossible to say
which is happening :)

ChrisA


More information about the Python-list mailing list