消息 [147562]
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. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2011-11-13 17:02:55 | pitrou | 修改 | recipients:
+ pitrou, rhettinger, amaury.forgeotdarc, nadeem.vawda |
| 2011-11-13 17:02:55 | pitrou | 修改 | messageid: <1321203775.25.0.709544388666.issue13396@psf.upfronthosting.co.za> |
| 2011-11-13 17:02:54 | pitrou | 链接 | issue13396 messages |
| 2011-11-13 17:02:54 | pitrou | 创建 | |
|