Lines Matching refs:octlong
2511 class octlong(long):
2519 return self.__class__(super(octlong, self).__add__(other))
2521 self.assertEqual(str(octlong(3) + 5), "010")
2524 self.assertEqual(str(5 + octlong(3000)), "05675")
2525 a = octlong(12345)
2532 self.assertTrue((-octlong(0)).__class__ is long)
2543 self.assertTrue((octlong(0) << 12).__class__ is long)
2544 self.assertTrue((octlong(0) >> 12).__class__ is long)
2545 self.assertTrue(abs(octlong(0)).__class__ is long)
2547 # Because octlong overrides __add__, we can't check the absence of +0
2548 # optimizations using octlong.