Lines Matching refs:octlong
2521 class octlong(long):
2529 return self.__class__(super(octlong, self).__add__(other))
2531 self.assertEqual(str(octlong(3) + 5), "010")
2534 self.assertEqual(str(5 + octlong(3000)), "05675")
2535 a = octlong(12345)
2542 self.assertIs((-octlong(0)).__class__, long)
2553 self.assertIs((octlong(0) << 12).__class__, long)
2554 self.assertIs((octlong(0) >> 12).__class__, long)
2555 self.assertIs(abs(octlong(0)).__class__, long)
2557 # Because octlong overrides __add__, we can't check the absence of +0
2558 # optimizations using octlong.