Q:

Create a tuple of lists from a list

Is there a way to create a tuple of lists from a list comprehension?
Something like:
actual_clients_emails, actual_client_names = [partner.email, partner.name for partner in op_client.ResPartner.browse([])]

I want to create 2 lists form one list.
I can do it this way:
actual_clients_emails = [partner.email for partner in op_client.ResPartner.browse([])]
actual_client_names = [partner.name for partner in op_client.ResPartner.browse([])]

A:

This is simply done using the zip() built-in function:
actual_clients_emails, actual_client_names = zip(
    *[(partner.email, partner.name)
      for partner in op_client.ResPartner.browse([])])

