First off, I\'m posting this because when I was looking for a solution to the problem below, I could not find one on stackoverflow. So, I\'m hoping to add a little bit to t
Partition results in Tuple
def getint(name): (basename, part, ext) = name.partition('.') (alpha, num) = basename.split('_') return int(num)