Hey, I just started wondering about this as I came upon a code that expected an object with a certain set of attributes (but with no specification of what type this object shoul
Use collections.namedtuple.
collections.namedtuple
It works well.
from collections import namedtuple Data = namedtuple( 'Data', [ 'do_good_stuff', 'do_bad_stuff' ] ) options = Data( True, False )