Message275007
| Author |
StyXman |
| Recipients |
StyXman |
| Date |
2016年09月08日.12:48:32 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1473338912.37.0.468562809295.issue28019@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
If the `step` parameter for `itertools.count()` rounds to 1 (f.i., 1.1, 1.437643, 1.99999), then it fallsback to fast (integer) mode and increases the counter by 1. Here's an example:
Python 3.6.0a4+ (default:ddc95a9bc2e0+, Sep 8 2016, 14:46:19)
>>> import itertools
>>> for i in itertools.count(1, step=1.5):
... print(i)
... if i > 10:
... break
1
2
3
4
5
6
7
8
9
10
11 |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年09月08日 12:48:32 | StyXman | set | recipients:
+ StyXman |
| 2016年09月08日 12:48:32 | StyXman | set | messageid: <1473338912.37.0.468562809295.issue28019@psf.upfronthosting.co.za> |
| 2016年09月08日 12:48:32 | StyXman | link | issue28019 messages |
| 2016年09月08日 12:48:32 | StyXman | create |
|