消息 [77909]
One other thought on the docs. I would like to continue the style of
supplying pure python equivalents to help precisely explain what a
function does (see the itertools docs for an example, also a few
builtins are explained that way and namedtuples too):
+ Equivalent to::
+
+ def numbits(x):
+ 'Number of binary bits necessary to represent the integer n'
+ return len(bin(x).lstrip('-0b')) |
|
| 日期 |
用户 |
动作 |
参数 |
| 2008-12-16 14:04:06 | rhettinger | 修改 | recipients:
+ rhettinger, loewis, terry.reedy, mark.dickinson, pitrou, vstinner, fredrikj |
| 2008-12-16 14:04:06 | rhettinger | 修改 | messageid: <1229436246.25.0.366274018495.issue3439@psf.upfronthosting.co.za> |
| 2008-12-16 14:04:05 | rhettinger | 链接 | issue3439 messages |
| 2008-12-16 14:04:05 | rhettinger | 创建 | |
|