psychopy_ext.exp.invert_dict

psychopy_ext.exp.invert_dict(d)[source]

Inverts a dictionary: keys become values.

This is an instance of an OrderedDict, and so the new keys are sorted.

Args:d: dict