Skip to content Skip to sidebar Skip to footer
Showing posts with the label Iterable Unpacking

Safe Unpack Empty Tuple Array

The line import re; print(re.findall('(.*) (.*)', 'john smith')) outputs [('joh… Read more Safe Unpack Empty Tuple Array

Unpack To Unknown Number Of Variables?

How could I unpack a tuple of unknown to, say, a list? I have a number of columns of data and they … Read more Unpack To Unknown Number Of Variables?

Python Futures And Tuple Unpacking

What is an elagant/idiomatic way to achieve something like tuple unpacking with futures? I have cod… Read more Python Futures And Tuple Unpacking

Safe Unpack Empty Tuple Array

The line import re; print(re.findall('(.*) (.*)', 'john smith')) outputs [('joh… Read more Safe Unpack Empty Tuple Array