Closed keith-hall closed 7 years ago
It might be a good idea to start with returning a namedtuple now. That has implicit documentation attached. ;)
Then you could use named group matches and pass match.groupdict()
as kwargs to the namedtuple constructor.
useful for when the syntax def doesn't have any file extensions associated with it, or when the test can't use the proper file extension