消息 [212846]
_check_int_field seems needlessly complex. When you want a value that is logically an integer (not merely capable of being coerced to an integer), you want object.__index__, per PEP 357, or to avoid explicit calls to special methods, use operator.index. Any reason to not just use operator.index directly? |
|
| 日期 |
用户 |
动作 |
参数 |
| 2014-03-06 22:17:29 | josh.r | 修改 | recipients:
+ josh.r, lemburg, tim.peters, belopolsky, bdkearns |
| 2014-03-06 22:17:29 | josh.r | 修改 | messageid: <1394144249.52.0.442293261361.issue20858@psf.upfronthosting.co.za> |
| 2014-03-06 22:17:29 | josh.r | 链接 | issue20858 messages |
| 2014-03-06 22:17:29 | josh.r | 创建 | |
|