The key doesn’t have to be a string.

--HG--
branch : 1.8
Simplify checking number_formats

--HG--
branch : 1.8
Fix for Python 3: __hash__ must be explicited implemented in a class which implements __eq__ or __ne__

--HG--
branch : 1.8