[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

I'm wrong or Will we fix the ducks limp?

On Fri, Jun 3, 2016 at 11:58 AM Sayth Renshaw <flebber.crue at>

> That totally makes sense I was just double checking, had hoped I could
> create a variable assign it to a list and append in one stroke.

In fact you can! It's called a "list comprehension"

    pyqFiles = [pq(my_dir + filename) for filename in sorted(file_list)]