Lines Matching refs:octlong
2494 class octlong(long):
2502 return self.__class__(super(octlong, self).__add__(other))
2504 self.assertEqual(str(octlong(3) + 5), "010")
2507 self.assertEqual(str(5 + octlong(3000)), "05675")
2508 a = octlong(12345)
2515 self.assertTrue((-octlong(0)).__class__ is long)
2526 self.assertTrue((octlong(0) << 12).__class__ is long)
2527 self.assertTrue((octlong(0) >> 12).__class__ is long)
2528 self.assertTrue(abs(octlong(0)).__class__ is long)
2530 # Because octlong overrides __add__, we can't check the absence of +0
2531 # optimizations using octlong.