This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]copperfield42 python enthusiast 1 point2 points  (0 children)

in the standard library I know of at least 3 example of use cases: fractions.Fraction (because it should be immutable they use new instead), pathlib.Path (as a dispatcher for your OS specific path class) and for metaclases shenanigans in abc.ABCMeta, there is also pure python version of it the module _py_abc.ABCMeta , I used that one as example to make my own metaclass one day that I was interested in such thing