﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
23968	Use generator comprehension instead of list comprehension when possible	Jon Dufresne	nobody	"Small cleanup to use generator comprehension instead of list comprehension when the called function can easily accept both. This avoids an extra list instance, thus avoid the small overhead of the temporary list.

For example, prefer:

{{{
tuple(force_text(item) for item in lst)
}}}

over:

{{{
tuple([force_text(item) for item in lst])
}}}

Patch to follow. Fixes uses of the following functions throughout the codebase.

{{{
dict()
tuple()
any()
all()
min()
max()
sorted()
list.extend()
list +=
}}}"	Cleanup/optimization	closed	Uncategorized	dev	Normal	fixed		jon.dufresne@…	Ready for checkin	1	0	0	0	0	0
