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 }}
pythoncapi
cpython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cpython
Objects
sliceobject.c
on
master
User selector
All users
Datepicker
All time
Commit history
Commits on Apr 29, 2018
bpo-33012: Fix invalid function cast warnings with gcc 8 for METH_NOARGS. (GH-6030)
Show description for 55edd0c
siddhesh
authored and
serhiy-storchaka
committed
55edd0c
View commit details
Copy full SHA for 55edd0c
View code at this point
Browse repository at this point
Commits on Sep 8, 2017
bpo-30860: Consolidate stateful runtime globals. (#3397)
Show description for 2ebc5ce
ericsnowcurrently
authored
2ebc5ce
View commit details
Copy full SHA for 2ebc5ce
View code at this point
Browse repository at this point
Commits on Jun 8, 2017
bpo-30592: Fixed error messages for some builtins. (#1996)
Show description for 6cca5c8
serhiy-storchaka
authored
6cca5c8
View commit details
Copy full SHA for 6cca5c8
View code at this point
Browse repository at this point
Commits on May 10, 2017
bpo-30281: Fix the default value for stop in PySlice_Unpack() (#1480)
zhangyangyu
authored
2ddf5a1
View commit details
Copy full SHA for 2ddf5a1
View code at this point
Browse repository at this point
Commits on Mar 30, 2017
bpo-29878: Add global instances of int for 0 and 1. (#852)
serhiy-storchaka
authored
ba85d69
View commit details
Copy full SHA for ba85d69
View code at this point
Browse repository at this point
Commits on Jan 25, 2017
Issue #27867: Function PySlice_GetIndicesEx() is deprecated and replaced with
Show description for 6e08baf
serhiy-storchaka
committed
6e08baf
View commit details
Copy full SHA for 6e08baf
View code at this point
Browse repository at this point
Issue #27867: Function PySlice_GetIndicesEx() is replaced with a macro if
Show description for b2a5be0
serhiy-storchaka
committed
b2a5be0
View commit details
Copy full SHA for b2a5be0
View code at this point
Browse repository at this point
Commits on Dec 16, 2016
Issue #28959: Added private macro PyDict_GET_SIZE for retrieving the size of dict.
serhiy-storchaka
committed
5ab81d7
View commit details
Copy full SHA for 5ab81d7
View code at this point
Browse repository at this point
Commits on Apr 16, 2016
fix slice cache finalization to use gc del
benjaminp
committed
b0c04cb
View commit details
Copy full SHA for b0c04cb
View code at this point
Browse repository at this point
add gc support to slice (closes #26659)
benjaminp
committed
2b601d3
View commit details
Copy full SHA for 2b601d3
View code at this point
Browse repository at this point
Commits on Nov 24, 2013
Make Ellipsis and NotImplemented picklable through the reduce protocol.
avassalotti
committed
c49477b
View commit details
Copy full SHA for c49477b
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 10, 2012
Issue #14794: slice.indices no longer returns OverflowError for out-of-range start, stop, step or length.
mdickinson
committed
c8a6967
View commit details
Copy full SHA for c8a6967
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 Nov 18, 2011
Issue #10227: Add an allocation cache for a single slice object.
Show description for f34a0cd
pitrou
committed
f34a0cd
View commit details
Copy full SHA for f34a0cd
View code at this point
Browse repository at this point
Commits on Oct 17, 2011
merge 3.2 (#13199)
benjaminp
committed
897d059
View commit details
Copy full SHA for 897d059
View code at this point
Browse repository at this point
plug possible refleak (closes #13199)
benjaminp
committed
2963fe0
View commit details
Copy full SHA for 2963fe0
View code at this point
Browse repository at this point
Commits on Aug 11, 2011
Replace Py_NotImplemented returns with the macro form Py_RETURN_NOTIMPLEMENTED.
Show description for dfc80e3
briancurtin
committed
dfc80e3
View commit details
Copy full SHA for dfc80e3
View code at this point
Browse repository at this point
Commits on Jul 29, 2011
make the types of None and Ellipsis callable
benjaminp
committed
c4607ae
View commit details
Copy full SHA for c4607ae
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
Commits on Oct 17, 2010
use helper hash unimplemented function
benjaminp
committed
23d05c1
View commit details
Copy full SHA for 23d05c1
View code at this point
Browse repository at this point
Commits on Aug 6, 2010
In PySlice_IndicesEx, clip the step to [-PY_SSIZE_T_MAX, PY_SSIZE_T_MAX] rather than [PY_SSIZE_T_MIN, PY_SSIZE_T_MAX].
mdickinson
committed
e6fc740
View commit details
Copy full SHA for e6fc740
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 Apr 20, 2009
Merged revisions 71734,71738-71739 via svnmerge from
Show description for fd838e6
benjaminp
committed
fd838e6
View commit details
Copy full SHA for fd838e6
View code at this point
Browse repository at this point
Commits on Feb 2, 2009
Issue #1717: rename tp_compare to tp_reserved. I'll change the
Show description for e94c679
mdickinson
committed
e94c679
View commit details
Copy full SHA for e94c679
View code at this point
Browse repository at this point
Commits on Jul 2, 2008
Merged revisions 64365,64370,64406,64408-64409,64412,64416-64417,64420-64421,64425-64428 via svnmerge from
Show description for fea6a94
benjaminp
committed
fea6a94
View commit details
Copy full SHA for fea6a94
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.
tiran
committed
90aa764
View commit details
Copy full SHA for 90aa764
View code at this point
Browse repository at this point
Commits on Dec 2, 2007
Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases in intobject.h
tiran
committed
217cfd1
View commit details
Copy full SHA for 217cfd1
View code at this point
Browse repository at this point
Commits on Oct 23, 2007
#1316: remove redundant PyLong_Check calls when PyInt_Check was already called.
birkenfeld
committed
e1a0d11
View commit details
Copy full SHA for e1a0d11
View code at this point
Browse repository at this point
Commits on Aug 31, 2007
Remove checking redundantly for checks of PyInt and PyLong.
nnorwitz
committed
1fe5f38
View commit details
Copy full SHA for 1fe5f38
View code at this point
Browse repository at this point
Commits on Aug 28, 2007
Fix buglet in sliceobjects, they were not returning Py_NotImplemented when
Show description for 3e57b52
Yhg1s
committed
3e57b52
View commit details
Copy full SHA for 3e57b52
View code at this point
Browse repository at this point
Commits on Jul 21, 2007
Merged revisions 56467-56482 via svnmerge from
Show description for 9f2e346
loewis
committed
9f2e346
View commit details
Copy full SHA for 9f2e346
View code at this point
Browse repository at this point
Commits on May 19, 2007
Add a format specifier %R to PyUnicode_FromFormat(), which embeds
Show description for 7569dfe
doerwalter
committed
7569dfe
View commit details
Copy full SHA for 7569dfe
View code at this point
Browse repository at this point
Commits on May 18, 2007
Add functions PyUnicode_Append() and PyUnicode_AppendAndDel() that mirror
Show description for 1ab8330
doerwalter
committed
1ab8330
View commit details
Copy full SHA for 1ab8330
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.