Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
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 }}
marienz
cpython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cpython
Objects
enumobject.c
on
issue-26870-python2
User selector
All users
Datepicker
All time
Commit history
Commits on May 22, 2010
#8635: document enumerate() start parameter in docstring.
birkenfeld
committed
54d2898
View commit details
Copy full SHA for 54d2898
View code at this point
Browse repository at this point
Commits on May 9, 2010
Untabify C files. Will watch buildbots.
pitrou
committed
c83ea13
View commit details
Copy full SHA for c83ea13
View code at this point
Browse repository at this point
Commits on Sep 25, 2009
#6994: fix typo in enumerate docstring
ezio-melotti
committed
a9a7611
View commit details
Copy full SHA for a9a7611
View code at this point
Browse repository at this point
Commits on May 25, 2009
handle errors from _PyObject_LookupSpecial when __get__ fails
benjaminp
committed
87e5006
View commit details
Copy full SHA for 87e5006
View code at this point
Browse repository at this point
Commits on May 9, 2009
*sigh* deal with instances correctly
benjaminp
committed
784d455
View commit details
Copy full SHA for 784d455
View code at this point
Browse repository at this point
lookup __reversed__ correctly as a special method
benjaminp
committed
809e225
View commit details
Copy full SHA for 809e225
View code at this point
Browse repository at this point
Commits on Jul 24, 2008
Convert from long to Py_ssize_t.
rhettinger
committed
7f59b5c
View commit details
Copy full SHA for 7f59b5c
View code at this point
Browse repository at this point
Commits on May 16, 2008
Don't allow keyword arguments to reversed().
birkenfeld
committed
ecf9091
View commit details
Copy full SHA for ecf9091
View code at this point
Browse repository at this point
Commits on May 13, 2008
#2831: add start argument to enumerate(). Patch by Scott Dial and me.
birkenfeld
committed
9138357
View commit details
Copy full SHA for 9138357
View code at this point
Browse repository at this point
Commits on Dec 19, 2007
#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available.
tiran
committed
e93237d
View commit details
Copy full SHA for e93237d
View code at this point
Browse repository at this point
Commits on Oct 3, 2007
enumerate() is no longer bounded to using sequences shorter than LONG_MAX. The possibility of overflow was sending some newsgroup posters into a tizzy.
rhettinger
committed
8f66937
View commit details
Copy full SHA for 8f66937
View code at this point
Browse repository at this point
Commits on Jul 21, 2007
PEP 3123: Provide forward compatibility with Python 3.0, while keeping
Show description for 6819210
loewis
committed
6819210
View commit details
Copy full SHA for 6819210
View code at this point
Browse repository at this point
Commits on Feb 8, 2007
Do not let overflows in enumerate() and count() pass silently.
rhettinger
committed
6d121f1
View commit details
Copy full SHA for 6d121f1
View code at this point
Browse repository at this point
Commits on Apr 15, 2006
Use Py_VISIT in all tp_traverse methods, instead of traversing manually or
Show description for c6e5506
Yhg1s
committed
c6e5506
View commit details
Copy full SHA for c6e5506
View code at this point
Browse repository at this point
Commits on Apr 11, 2006
More C++-compliance. Note especially listobject.c - to get C++ to accept the
Show description for 377be11
anthonybaxter
committed
377be11
View commit details
Copy full SHA for 377be11
View code at this point
Browse repository at this point
Commits on Mar 7, 2006
Change int to Py_ssize_t in several places.
Show description for 725507b
loewis
committed
725507b
View commit details
Copy full SHA for 725507b
View code at this point
Browse repository at this point
Commits on Feb 27, 2006
Revert backwards-incompatible const changes.
loewis
committed
15e6274
View commit details
Copy full SHA for 15e6274
View code at this point
Browse repository at this point
Commits on Feb 16, 2006
Use Py_ssize_t for counts and sizes.
Show description for eb079f1
loewis
committed
eb079f1
View commit details
Copy full SHA for eb079f1
View code at this point
Browse repository at this point
Commits on Feb 15, 2006
Merge ssize_t branch.
loewis
committed
18e1655
View commit details
Copy full SHA for 18e1655
View code at this point
Browse repository at this point
Commits on Feb 11, 2006
Renamed _length_cue() to __length_hint__(). See:
Show description for f5b3e36
arigo
committed
f5b3e36
View commit details
Copy full SHA for f5b3e36
View code at this point
Browse repository at this point
Commits on Dec 11, 2005
en_sit will be freed when en is DECREF'd. Don't double free.
nnorwitz
committed
ba2fa63
View commit details
Copy full SHA for ba2fa63
View code at this point
Browse repository at this point
Commits on Dec 10, 2005
Add const to several API functions that take char *.
Show description for af68c87
jeremyhylton
committed
af68c87
View commit details
Copy full SHA for af68c87
View code at this point
Browse repository at this point
Commits on Sep 24, 2005
Convert iterator __len__() methods to a private API.
rhettinger
committed
6b27cda
View commit details
Copy full SHA for 6b27cda
View code at this point
Browse repository at this point
Commits on Sep 1, 2004
SF patch #1020188: Use Py_CLEAR where necessary to avoid crashes
Show description for 75ccea3
rhettinger
committed
75ccea3
View commit details
Copy full SHA for 75ccea3
View code at this point
Browse repository at this point
Commits on Aug 25, 2004
Fix docstring typo.
rhettinger
committed
d2afee4
View commit details
Copy full SHA for d2afee4
View code at this point
Browse repository at this point
Commits on Apr 12, 2004
* Add unittests for iterators that report their length
Show description for 7892b1c
rhettinger
committed
7892b1c
View commit details
Copy full SHA for 7892b1c
View code at this point
Browse repository at this point
Commits on Mar 10, 2004
Tidied up the implementations of reversed (including the custom ones
Show description for ef9bf40
rhettinger
committed
ef9bf40
View commit details
Copy full SHA for ef9bf40
View code at this point
Browse repository at this point
Eliminate the double reverse option. It's only use case
Show description for d2c3626
rhettinger
committed
d2c3626
View commit details
Copy full SHA for d2c3626
View code at this point
Browse repository at this point
Commits on Feb 10, 2004
Make reversed() transparent with respect to length.
rhettinger
committed
029dba5
View commit details
Copy full SHA for 029dba5
View code at this point
Browse repository at this point
Commits on Feb 8, 2004
Let reversed() work with itself.
rhettinger
committed
06353f7
View commit details
Copy full SHA for 06353f7
View code at this point
Browse repository at this point
Commits on Feb 7, 2004
* Fix ref counting in extend() and extendleft().
Show description for c058fd1
rhettinger
committed
c058fd1
View commit details
Copy full SHA for c058fd1
View code at this point
Browse repository at this point
Commits on Nov 7, 2003
Optimize reversed(list) using a custom iterator.
rhettinger
committed
1021c44
View commit details
Copy full SHA for 1021c44
View code at this point
Browse repository at this point
Commits on Nov 6, 2003
Implement and apply PEP 322, reverse iteration
rhettinger
committed
85c20a4
View commit details
Copy full SHA for 85c20a4
View code at this point
Browse repository at this point
Commits on Nov 2, 2003
Use PyTuple_Pack() to simplify enumerate().
rhettinger
committed
54a831b
View commit details
Copy full SHA for 54a831b
View code at this point
Browse repository at this point
Commits on May 28, 2003
* Beefed-up tests
Show description for e8b0f04
rhettinger
committed
e8b0f04
View commit details
Copy full SHA for e8b0f04
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.