make_list_of_ints

make_list_of_ints(sequence)[source]

Return list of ints from sequence of integral numbers.

All elements of the sequence must satisfy int(element) == element or a ValueError is raised. Sequence is iterated through once.

If sequence is a list, the non-int values are replaced with ints. So, no new list is created