def isoparse(iso_str):
 dt_args = [int(p) for p in _NONDIGIT_RE.split(iso_str)]
 return datetime(*dt_args)

def isoparse ( iso_str ) : dt_args = [ int ( p ) for p in _NONDIGIT_RE . split ( iso_str ) ] return datetime ( * dt_args )
parses the limited subset of iso8601-formatted time_ strings as returned by :meth:datetime .