Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
gh-91432: Specialize FOR_ITER#91713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
3a7f8df3b5ce1eb21b5f437269cfea0a7ee0751228dc80fdae4294101cb2de773fa01c4213582bf58358bd7575edb8754b2050c4e824e9666b16772c2a75a56696384d29709122635a6f360d6581e0500c2eab6825689c3b5df0472b1c17091d280ceba5e605b153d776f9a740565a689ba5b796cdf0e403dde6af1e2d39463c3b9ed29777188b35736d0999ad2e969d55868f2d6ee26db21da1File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -507,7 +507,7 @@ def test_range_iterators(self): | ||
| # exercise 'fast' iterators, that use a rangeiterobject internally. | ||
| # see issue 7298 | ||
| limits = [base + jiggle | ||
| for M in (2**15, 2**30, 2**32, 2**64) | ||
| for base in (-M, -M//2, 0, M//2, M) | ||
| for jiggle in (-2, -1, 0, 1, 2)] | ||
| test_ranges = [(start, end, step) | ||
| @@ -519,13 +519,14 @@ def test_range_iterators(self): | ||
| iter1 = range(start, end, step) | ||
| iter2 = pyrange(start, end, step) | ||
| test_id = "range({}, {}, {})".format(start, end, step) | ||
| # check first10 entries | ||
| self.assert_iterators_equal(iter1, iter2, test_id, limit=10) | ||
| ||
| iter1 = reversed(range(start, end, step)) | ||
| iter2 = pyrange_reversed(start, end, step) | ||
| test_id = "reversed(range({}, {}, {}))".format(start, end, step) | ||
| self.assert_iterators_equal(iter1, iter2, test_id, limit=10) | ||
| def test_range_iterators_invocation(self): | ||
| # verify range iterators instances cannot be created by | ||