On Fri, Jun 3, 2016 at 11:58 AM Sayth Renshaw <flebber.c...@gmail.com>
wrote:

> 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)]
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to