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
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.3k
Star
75k
Code
Issues
5k+
Pull requests
2.6k
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
Python
codecs.c
on
a9b1524
User selector
All users
Datepicker
All time
Commit history
Commits on Feb 4, 2014
Close #20404: blacklist non-text encodings in io.TextIOWrapper
Show description for a9b1524
ncoghlan
committed
a9b1524
View commit details
Copy full SHA for a9b1524
View code at this point
Browse repository at this point
Commits on Nov 22, 2013
Issue #19619: Blacklist non-text codecs in method API
Show description for c72e4e6
ncoghlan
committed
c72e4e6
View commit details
Copy full SHA for c72e4e6
View code at this point
Browse repository at this point
Commits on Nov 19, 2013
Issue #12892: The utf-16* and utf-32* codecs now reject (lone) surrogates.
Show description for 58cf607
serhiy-storchaka
committed
58cf607
View commit details
Copy full SHA for 58cf607
View code at this point
Browse repository at this point
Commits on Nov 15, 2013
Close 19609: narrow scope of codec exc chaining
ncoghlan
committed
c4c2580
View commit details
Copy full SHA for c4c2580
View code at this point
Browse repository at this point
Commits on Nov 13, 2013
Close #17828: better handling of codec errors
Show description for 8b097b4
ncoghlan
committed
8b097b4
View commit details
Copy full SHA for 8b097b4
View code at this point
Browse repository at this point
Commits on Oct 19, 2013
Issue #1772673: The type of `char*` arguments now changed to `const char*`.
serhiy-storchaka
committed
c679227
View commit details
Copy full SHA for c679227
View code at this point
Browse repository at this point
Commits on Aug 13, 2013
Issue #18722: Remove uses of the "register" keyword in C code.
pitrou
committed
9ed5f27
View commit details
Copy full SHA for 9ed5f27
View code at this point
Browse repository at this point
Commits on Jul 11, 2013
Issue #18408: normalizestring() now raises MemoryError on memory allocation failure
vstinner
committed
cc35159
View commit details
Copy full SHA for cc35159
View code at this point
Browse repository at this point
Commits on Dec 25, 2012
Issue #15422: get rid of PyCFunction_New macro
asvetlov
committed
3ba3a3e
View commit details
Copy full SHA for 3ba3a3e
View code at this point
Browse repository at this point
Commits on Nov 3, 2012
#16336: merge with 3.3.
ezio-melotti
committed
1e58ae4
View commit details
Copy full SHA for 1e58ae4
View code at this point
Browse repository at this point
#16336: merge with 3.2.
ezio-melotti
committed
a0b5c46
View commit details
Copy full SHA for a0b5c46
View code at this point
Browse repository at this point
#16336: fix input checking in the surrogatepass error handler. Patch by Serhiy Storchaka.
ezio-melotti
committed
540da76
View commit details
Copy full SHA for 540da76
View code at this point
Browse repository at this point
Commits on Oct 30, 2012
Issue #16330: Use surrogate-related macros
Show description for 76df43d
vstinner
committed
76df43d
View commit details
Copy full SHA for 76df43d
View code at this point
Browse repository at this point
Commits on Oct 27, 2012
merge with 3.2
pjenvey
committed
5f9459f
View commit details
Copy full SHA for 5f9459f
View code at this point
Browse repository at this point
bounds check for bad data (thanks amaury)
pjenvey
committed
45c4149
View commit details
Copy full SHA for 45c4149
View code at this point
Browse repository at this point
Commits on Apr 27, 2012
Check newly created consistency using _PyUnicode_CheckConsistency(str, 1)
Show description for 8f82506
vstinner
committed
8f82506
View commit details
Copy full SHA for 8f82506
View code at this point
Browse repository at this point
Commits on Jan 18, 2012
Issue #13722: Avoid silencing ImportErrors when initializing the codecs registry.
pitrou
committed
f0ecdd2
View commit details
Copy full SHA for f0ecdd2
View code at this point
Browse repository at this point
Issue #13722: Avoid silencing ImportErrors when initializing the codecs registry.
pitrou
committed
1b468af
View commit details
Copy full SHA for 1b468af
View code at this point
Browse repository at this point
Commits on Dec 1, 2011
PyCodec_IgnoreErrors() avoids the deprecated "u#" format
Victor Stinner
committed
ee45009
View commit details
Copy full SHA for ee45009
View code at this point
Browse repository at this point
Commits on Nov 4, 2011
Avoid the Py_UNICODE type in codecs.c
Victor Stinner
committed
c06bb7a
View commit details
Copy full SHA for c06bb7a
View code at this point
Browse repository at this point
PyCodec_XMLCharRefReplaceError(): Remove unused variable
Victor Stinner
committed
b31f1bc
View commit details
Copy full SHA for b31f1bc
View code at this point
Browse repository at this point
Fix C89 incompatibility.
loewis
committed
8ba7930
View commit details
Copy full SHA for 8ba7930
View code at this point
Browse repository at this point
Port error handlers from Py_UNICODE indexing to code point indexing.
loewis
committed
b09af03
View commit details
Copy full SHA for b09af03
View code at this point
Browse repository at this point
Commits on Oct 14, 2011
Rename _Py_identifier to _Py_IDENTIFIER.
loewis
committed
bd928fe
View commit details
Copy full SHA for bd928fe
View code at this point
Browse repository at this point
Issue #13088: Add shared Py_hexdigits constant to format a number into base 16
Victor Stinner
committed
f5cff56
View commit details
Copy full SHA for f5cff56
View code at this point
Browse repository at this point
Commits on Oct 10, 2011
Use identifier API for PyObject_GetAttrString.
loewis
committed
1ee1b6f
View commit details
Copy full SHA for 1ee1b6f
View code at this point
Browse repository at this point
Commits on Oct 2, 2011
PyCodec_ReplaceErrors() uses "C" format instead of "u#" to build result
Victor Stinner
committed
1a15aba
View commit details
Copy full SHA for 1a15aba
View code at this point
Browse repository at this point
Commits on Sep 28, 2011
Use the new Py_ARRAY_LENGTH macro
Victor Stinner
committed
6394188
View commit details
Copy full SHA for 6394188
View code at this point
Browse repository at this point
Implement PEP 393.
loewis
committed
d63a3b8
View commit details
Copy full SHA for d63a3b8
View code at this point
Browse repository at this point
Commits on Jul 24, 2011
Issue #1813: Fix codec lookup under Turkish locales.
pitrou
committed
cf9d3c0
View commit details
Copy full SHA for cf9d3c0
View code at this point
Browse repository at this point
Commits on Sep 9, 2010
Issue #9804: ascii() now always represents unicode surrogate pairs as
Show description for e4a1892
pitrou
committed
e4a1892
View commit details
Copy full SHA for e4a1892
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 Oct 27, 2009
Merged revisions 75365,75394,75402-75403,75418,75459,75484,75592-75596,75600,75602-75607,75610-75613,75616-75617,75623,75627,75640,75647,75696,75795 via svnmerge from
Show description for 495f7b5
birkenfeld
committed
495f7b5
View commit details
Copy full SHA for 495f7b5
View code at this point
Browse repository at this point
Commits on May 10, 2009
Rename utf8b error handler to surrogateescape.
loewis
committed
43c5778
View commit details
Copy full SHA for 43c5778
View code at this point
Browse repository at this point
Rename the surrogates error handler to surrogatepass.
loewis
committed
e0a2b72
View commit details
Copy full SHA for e0a2b72
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.