def _composite_table(pa, pb, ta, tb):
    "Create a new table based on information from tables and prefixes."
    columns = []
    for table_name, table_obj in zip((pa, pb), (ta, tb)):
        iterator = iter(table_obj)
        names = next(iterator)
        types = map(lambda item: item[1], table_obj.schema)
        for column_name, column_type in zip(names, types):
            if table_name != '_':
                column_name = '{}.{}'.format(table_name, column_name)
            columns.append((column_name, column_type))
    return Table(*columns)
Create a new table based on information from tables and prefixes.
recipes/Python/577825_Rudimentary_Database_Engine/recipe-577825.py