def int_pair(s, default=(<NUM_LIT:0>, None)):
s = re.split(r'<STR_LIT>', str(s).strip())<EOL>if len(s) and len(s[<NUM_LIT:0>]):<EOL><INDENT>if len(s) > <NUM_LIT:1> and len(s[<NUM_LIT:1>]):<EOL><INDENT>return (int(s[<NUM_LIT:0>]), int(s[<NUM_LIT:1>]))<EOL><DEDENT>return (int(s[<NUM_LIT:0>]), default[<NUM_LIT:1>])<EOL><DEDENT>return default<EOL>
Return the digits to either side of a single non-digit character as a 2-tuple of integers

    >>> int_pair('90210-007')
    (90210, 7)
    >>> int_pair('04321.0123')
    (4321, 123)