Factory functions mean that these built-in functions are class objects , When you call them , It's actually creating a class instance , In fact, it can also be understood as a built-in function . Factory functions are like factories that mass produce the same class instances .
for example ,list() Method , We can see from the source code that it is a class rather than a function :
We call list(), It's actually creating a list object .