stuff = set([ '%s.%s' % (prefix, type) for type in types(suffix) if prefix in get_types(given_type) ])
# how do I know where I can split this onto multiple lines?
and my answer is at the expression.
>>> [x
... for
... x
... in
... range(0,3)
... if x == 2]
[2]
>>>
>>>
>>> [x
... for
... x
... in
... range(
... 0
... ,
... 3
... )
... if x == 2 ]
[2]