def combine(self, bot2, bot3, bot4): self.validify() if not isinstance(bot2, Bot): raise TypeError('bot2 should be of [Bot]') bot2.validify() if not isinstance(bot3, Bot): raise TypeError('bot3 should be of [Bot]') bot3.validify() if not isinstance(bot4, Bot): raise TypeError('bot4 should be of [Bot]') bot4.validify() return library.botCombine(self.ptr, bot2.ptr, bot3.ptr, bot4.ptr)
def combine(self, bot2, bot3, bot4): self.validify() if bot2.__class__ not in [Bot]: raise TypeError('bot2 should be of [Bot]') bot2.validify() if bot3.__class__ not in [Bot]: raise TypeError('bot3 should be of [Bot]') bot3.validify() if bot4.__class__ not in [Bot]: raise TypeError('bot4 should be of [Bot]') bot4.validify() return library.botCombine(self.ptr, bot2.ptr, bot3.ptr, bot4.ptr)