Message147562
Good idea, IMO.
+ cum = set()
+ for i in range(100):
+ val = getbytes(span)
+ cum |= set(i for i in range(span) if val[i])
+ self.assertEqual(len(cum), span)
I find this test a bit strange. Also, perhaps it should be bitwise rather than bytewise. |
|
Date |
User |
Action |
Args |
2011-11-13 17:02:55 | pitrou | set | recipients:
+ pitrou, rhettinger, amaury.forgeotdarc, nadeem.vawda |
2011-11-13 17:02:55 | pitrou | set | messageid: <1321203775.25.0.709544388666.issue13396@psf.upfronthosting.co.za> |
2011-11-13 17:02:54 | pitrou | link | issue13396 messages |
2011-11-13 17:02:54 | pitrou | create | |
|