The only reason set has this limitation is because it’s a built-in. Ordinary methods in user-defined classes don’t care whether the first argument is an instance of the class:
>>> class Example:
... def join(self, *values):
... return self, *values
...
>>> Example().join(1, 2, 3)
(<__main__.Example object at 0x7f8a1e3dab20>, 1, 2, 3)
>>> Example.join(1, 2, 3)
(1, 2, 3)
>>> Example.join(Example(), 1, 2, 3)
(<__main__.Example object at 0x7f8a1e3dab20>, 1, 2, 3)
Just as they don’t care whether that argument is assigned to a separate parameter named self (although this example also allows for an empty argument list when calling it from the class):
>>> class Example:
... def join(*values):
... return values
...
>>> Example().join(1, 2, 3)
(<__main__.Example object at 0x7f8a1e3dab20>, 1, 2, 3)
>>> Example.join(1, 2, 3)
(1, 2, 3)
>>> Example.join(Example(), 1, 2, 3)
(<__main__.Example object at 0x7f8a1e3dab20>, 1, 2, 3)
(This can’t be done with @classmethod or @staticmethod - since those will discard any knowledge of the object, if any, upon which the method was called.)
So, theoretically almost everything behaves this way - it’s just a question of whether it’s useful, which boils down to the method caring about self but not caring about its internal interface. set.union and set.intersection only care about the fact that self is iterable, because they create a new object.