I'm interpreting that question as, "why do you have functions inside your ObjectFactory class that don't have a
self
parameter? Shouldn't those be staticmethods?". Those functions are effectively "private" functions, because they're defined inside other functions. For example,
connect
is defined inside
__init__
. One of the reasons they aren't staticmethods is because I don't want anyone else to call them.