I strongly doubt that you ever reached the limit, even if it were. As far as I know, the number of methods that an object can have is limited only by memory. I just defined a class with a million functions, no problem. Try it if you do not believe me:
>>> class C(object): pass >>> for i in xrange(10**6): exec('C.func%d=lambda self: %d'%(i,i)) >>> c = C() >>> c.func1() 1 >>> c.func999999() 999999
If your class has more than a million functions (hell or more than a dozen or so), you have other problems.
source share