The Python numeric tower in UML

The numbers module contains abstract base classes describing what interface defines a Real or an Integral according to PEP 3141. But I do not know of any attempts at a graphical representation of PEP 3141.

Being a visual person, I find that UML helps me think. So here is the numerical hierarchy:

uml diagram

That's it!

Comments !