Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
python
/
cpython
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
35.2k
Star
74.3k
Code
Issues
5k+
Pull requests
2.5k
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Commits
Breadcrumbs
History for
cpython
Objects
rangeobject.c
on
3.4
User selector
All users
All time
Commit history
Commits on May 30, 2015
Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(),
Show description for fa494fd
serhiy-storchaka
committed
fa494fd
View commit details
Copy full SHA for fa494fd
View code at this point
Browse repository at this point
Commits on Apr 22, 2015
improved range docstring (closes #22785)
Show description for ac22c6b
benjaminp
committed
ac22c6b
View commit details
Copy full SHA for ac22c6b
View code at this point
Browse repository at this point
Commits on Jan 9, 2015
remove buzzword (closes #23210)
benjaminp
committed
bcf8554
View commit details
Copy full SHA for bcf8554
View code at this point
Browse repository at this point
Commits on Mar 5, 2014
Make the various iterators' "setstate" sliently and consistently clip the
Show description for c5cc501
kristjanvalur
committed
c5cc501
View commit details
Copy full SHA for c5cc501
View code at this point
Browse repository at this point
Make the various iterators' "setstate" sliently and consistently clip the
Show description for 25dded0
kristjanvalur
committed
25dded0
View commit details
Copy full SHA for 25dded0
View code at this point
Browse repository at this point
Commits on Mar 4, 2014
Merge with 3.3
Kristján Valur Jónsson
committed
25ea45d
View commit details
Copy full SHA for 25ea45d
View code at this point
Browse repository at this point
Fix pickling of rangeiter. rangeiter_setstate would not allow setting it
Show description for 4ca688e
Kristján Valur Jónsson
committed
4ca688e
View commit details
Copy full SHA for 4ca688e
View code at this point
Browse repository at this point
Commits on Oct 5, 2013
#19067: merge with 3.3.
ezio-melotti
committed
b32a811
View commit details
Copy full SHA for b32a811
View code at this point
Browse repository at this point
#19067: use imperative mood in range object docstrings. Patch by Marco Buttu.
ezio-melotti
committed
5792ce1
View commit details
Copy full SHA for 5792ce1
View code at this point
Browse repository at this point
Commits on Aug 27, 2013
Issue #18783: Removed existing mentions of Python long type in docstrings,
Show description for 46e1ce2
serhiy-storchaka
committed
46e1ce2
View commit details
Copy full SHA for 46e1ce2
View code at this point
Browse repository at this point
Issue #18783: Removed existing mentions of Python long type in docstrings,
Show description for 9594942
serhiy-storchaka
committed
9594942
View commit details
Copy full SHA for 9594942
View code at this point
Browse repository at this point
Commits on Nov 17, 2012
Issue #16451: Refactor to remove duplication between range and slice in slice index computations.
mdickinson
committed
ffdb2c2
View commit details
Copy full SHA for ffdb2c2
View code at this point
Browse repository at this point
Commits on Nov 4, 2012
Issue #16402: Merge fix from 3.2
mdickinson
committed
1321eda
View commit details
Copy full SHA for 1321eda
View code at this point
Browse repository at this point
Issue #16402: In range slicing, fix shadowing of exceptions from __index__ method.
mdickinson
committed
8cd1c76
View commit details
Copy full SHA for 8cd1c76
View code at this point
Browse repository at this point
Commits on Oct 7, 2012
Issue #14783: Merge changes from 3.2.
cjerdonek
committed
042fa65
View commit details
Copy full SHA for 042fa65
View code at this point
Browse repository at this point
Issue #14783: Improve int() docstring and also str(), range(), and slice().
Show description for 83fe2e1
cjerdonek
committed
83fe2e1
View commit details
Copy full SHA for 83fe2e1
View code at this point
Browse repository at this point
Commits on May 16, 2012
Issue #14829: Fix bisect and range() indexing with large indices (>= 2 ** 32) under 64-bit Windows.
Show description for b7d033d
pitrou
committed
b7d033d
View commit details
Copy full SHA for b7d033d
View code at this point
Browse repository at this point
Issue #14829: Fix bisect and range() indexing with large indices (>= 2 ** 32) under 64-bit Windows.
pitrou
committed
a103b96
View commit details
Copy full SHA for a103b96
View code at this point
Browse repository at this point
Commits on Apr 4, 2012
Rename _PyIter_GetBuiltin to _PyObject_GetBuiltin, and do not include it in the stable ABI.
pitrou
committed
a701388
View commit details
Copy full SHA for a701388
View code at this point
Browse repository at this point
Commits on Apr 3, 2012
Issue #14288: Serialization support for builtin iterators.
Kristján Valur Jónsson
committed
31668b8
View commit details
Copy full SHA for 31668b8
View code at this point
Browse repository at this point
Commits on Nov 5, 2011
add introspection to range objects (closes #9896)
Show description for 878ce38
benjaminp
committed
878ce38
View commit details
Copy full SHA for 878ce38
View code at this point
Browse repository at this point
Commits on Oct 23, 2011
Issue #13201: equality for range objects is now based on equality of the underlying sequences. Thanks Sven Marnach for the patch.
mdickinson
committed
3664568
View commit details
Copy full SHA for 3664568
View code at this point
Browse repository at this point
Commits on Apr 15, 2011
#11845: Fix typo in rangeobject.c that caused a crash in compute_slice_indices. Patch by Daniel Urban.
ezio-melotti
committed
982ef4e
View commit details
Copy full SHA for 982ef4e
View code at this point
Browse repository at this point
Commits on Jan 16, 2011
rangeobject.c (compute_slice_indices): Make function static.
doko42
committed
616667f
View commit details
Copy full SHA for 616667f
View code at this point
Browse repository at this point
Commits on Jan 13, 2011
plug reference leak
benjaminp
committed
547d485
View commit details
Copy full SHA for 547d485
View code at this point
Browse repository at this point
Commits on Jan 12, 2011
Issue 10889: Support slicing and indexing of large ranges (no docs changes, since, as far as I know, we never said anywhere that this *didn't* work)
ncoghlan
committed
e993b10
View commit details
Copy full SHA for e993b10
View code at this point
Browse repository at this point
Commits on Dec 3, 2010
Merge branches/pep-0384.
loewis
committed
4d0d471
View commit details
Copy full SHA for 4d0d471
View code at this point
Browse repository at this point
Issue 2690: Add support for slicing and negative indices to range objects (includes precalculation and storage of the range length).
Show description for 37ee850
ncoghlan
committed
37ee850
View commit details
Copy full SHA for 37ee850
View code at this point
Browse repository at this point
Commits on Nov 20, 2010
pep 7 actually wants the brace on a new line
benjaminp
committed
a1864f3
View commit details
Copy full SHA for a1864f3
View code at this point
Browse repository at this point
code style and simplification
benjaminp
committed
155614b
View commit details
Copy full SHA for 155614b
View code at this point
Browse repository at this point
Add error handling in range_count.
birkenfeld
committed
7e5343b
View commit details
Copy full SHA for 7e5343b
View code at this point
Browse repository at this point
count() should return integers #10474
benjaminp
committed
0b458d5
View commit details
Copy full SHA for 0b458d5
View code at this point
Browse repository at this point
Commits on Sep 13, 2010
Issue #9213: Add index and count methods to range objects, needed to
Show description for 9f0cbf1
DanielStutzbach
committed
9f0cbf1
View commit details
Copy full SHA for 9f0cbf1
View code at this point
Browse repository at this point
Commits on May 9, 2010
Recorded merge of revisions 81029 via svnmerge from
Show description for f95a1b3
pitrou
committed
f95a1b3
View commit details
Copy full SHA for f95a1b3
View code at this point
Browse repository at this point
Commits on Nov 16, 2009
fix one visible and several possible refleaks in rangeobject.c
Show description for 36fbb73
benjaminp
committed
36fbb73
View commit details
Copy full SHA for 36fbb73
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.