Lines Matching refs:octlong
2726 class octlong(int):
2731 return self.__class__(super(octlong, self).__add__(other))
2733 self.assertEqual(str(octlong(3) + 5), "0o10")
2736 self.assertEqual(str(5 + octlong(3000)), "0o5675")
2737 a = octlong(12345)
2744 self.assertIs((-octlong(0)).__class__, int)
2755 self.assertIs((octlong(0) << 12).__class__, int)
2756 self.assertIs((octlong(0) >> 12).__class__, int)
2757 self.assertIs(abs(octlong(0)).__class__, int)
2759 # Because octlong overrides __add__, we can't check the absence of +0
2760 # optimizations using octlong.