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 }}
python
cpython
Repository navigation
Code
Issues
5k+
(5k+)
Pull requests
2.4k
(2.4k)
Actions
Projects
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
cpython
Objects
stringlib
string_format.h
on
3.2
User selector
All users
Datepicker
All time
Commit history
Commits on Oct 28, 2012
Issue #14700: Fix buggy overflow checks for large precision and width in new-style and old-style formatting.
mdickinson
committed
fb90c09
View commit details
Copy full SHA for fb90c09
View code at this point
Browse repository at this point
Commits on Jul 18, 2011
Closes #12579. Positional fields with str.format_map() now raise a ValueError instead of SystemError.
ericvsmith
committed
12ebefc
View commit details
Copy full SHA for 12ebefc
View code at this point
Browse repository at this point
Commits on Mar 15, 2011
#11515: Merge with 3.1.
ezio-melotti
committed
4969f70
View commit details
Copy full SHA for 4969f70
View code at this point
Browse repository at this point
#11515: fix several typos. Patch by Piotr Kasprzyk.
ezio-melotti
committed
42da663
View commit details
Copy full SHA for 42da663
View code at this point
Browse repository at this point
Commits on Jan 29, 2011
Issue #11302: missing type check on _string.formatter_field_name_split and _string.formatter_parser caused crash.
Show description for a1eac72
ericvsmith
committed
a1eac72
View commit details
Copy full SHA for a1eac72
View code at this point
Browse repository at this point
Commits on Nov 5, 2010
Followup to r86170: fix reference leak in str.format
pitrou
committed
a277ec4
View commit details
Copy full SHA for a277ec4
View code at this point
Browse repository at this point
Commits on Nov 4, 2010
Issue #6081: Add str.format_map. str.format_map(mapping) is similar to str.format(**mapping), except mapping does not get converted to a dict.
ericvsmith
committed
27bbca6
View commit details
Copy full SHA for 27bbca6
View code at this point
Browse repository at this point
Commits on Oct 14, 2010
#9418: first step of moving private string methods to _string module.
birkenfeld
committed
66c221e
View commit details
Copy full SHA for 66c221e
View code at this point
Browse repository at this point
Commits on Jun 8, 2010
Merged revisions 81823,81835 via svnmerge from
Show description for 99bcf5c
benjaminp
committed
99bcf5c
View commit details
Copy full SHA for 99bcf5c
View code at this point
Browse repository at this point
Commits on Jun 7, 2010
Merged revisions 81820 via svnmerge from
Show description for 59a1b2f
benjaminp
committed
59a1b2f
View commit details
Copy full SHA for 59a1b2f
View code at this point
Browse repository at this point
Commits on May 9, 2010
Recorded merge of revisions 81032 via svnmerge from
Show description for 7f14f0d
pitrou
committed
7f14f0d
View commit details
Copy full SHA for 7f14f0d
View code at this point
Browse repository at this point
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 May 23, 2009
Merged revisions 72848 via svnmerge from
Show description for 41669ca
ericvsmith
committed
41669ca
View commit details
Copy full SHA for 41669ca
View code at this point
Browse repository at this point
Commits on May 1, 2009
Merged revisions 72159 via svnmerge from
Show description for fb526ac
birkenfeld
committed
fb526ac
View commit details
Copy full SHA for fb526ac
View code at this point
Browse repository at this point
Commits on Mar 14, 2009
Merged revisions 70364 via svnmerge from
Show description for 8ec9044
ericvsmith
committed
8ec9044
View commit details
Copy full SHA for 8ec9044
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 Jun 11, 2008
#2630: Implement PEP 3138.
Show description for 559e5d7
birkenfeld
committed
559e5d7
View commit details
Copy full SHA for 559e5d7
View code at this point
Browse repository at this point
Commits on Jun 2, 2008
Refactored known type optimization, in anticipation of backporting to 2.6. I'll probably move this code into PyObject_Format, so everyone benefits.
ericvsmith
committed
ba8c028
View commit details
Copy full SHA for ba8c028
View code at this point
Browse repository at this point
Commits on May 31, 2008
Optimization of str.format() for cases with unicode, long, and float
Show description for 1d138f1
ericvsmith
committed
1d138f1
View commit details
Copy full SHA for 1d138f1
View code at this point
Browse repository at this point
Commits on May 26, 2008
Renamed PyString to PyBytes
tiran
committed
72b710a
View commit details
Copy full SHA for 72b710a
View code at this point
Browse repository at this point
Commits on Apr 7, 2008
Merged revisions 62199 via svnmerge from
Show description for 5a6f458
loewis
committed
5a6f458
View commit details
Copy full SHA for 5a6f458
View code at this point
Browse repository at this point
Commits on Feb 24, 2008
Corrected assert to check for correct type in py3k.
ericvsmith
committed
ecbac8f
View commit details
Copy full SHA for ecbac8f
View code at this point
Browse repository at this point
Commits on Feb 18, 2008
Port 60893 to py3k, without unicode test.
ericvsmith
committed
8a0217c
View commit details
Copy full SHA for 8a0217c
View code at this point
Browse repository at this point
Commits on Feb 17, 2008
Fixes for shared 2.6 code that implements PEP 3101, advanced string
Show description for 8fd3eba
ericvsmith
committed
8fd3eba
View commit details
Copy full SHA for 8fd3eba
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 Nov 15, 2007
Replace PyObject_Unicode with PyObject_Str everywhere, and remove the
Show description for 519a042
Thomas Heller
committed
519a042
View commit details
Copy full SHA for 519a042
View code at this point
Browse repository at this point
Commits on Sep 5, 2007
Simplified recursion logic. Modified variable name to match string.Formatter.
ericvsmith
committed
45c0787
View commit details
Copy full SHA for 45c0787
View code at this point
Browse repository at this point
Commits on Sep 4, 2007
Changed some ValueError's to KeyError and IndexError.
Show description for 1152919
ericvsmith
committed
1152919
View commit details
Copy full SHA for 1152919
View code at this point
Browse repository at this point
Commits on Sep 3, 2007
Fix segfault discovered by Ron Adam. Not checking for terminating right bracket in "'{0[}'.format(())". Fixed, and tests added.
ericvsmith
committed
4cb4e4e
View commit details
Copy full SHA for 4cb4e4e
View code at this point
Browse repository at this point
Commits on Aug 29, 2007
Modified parsing of format strings, so that we always return
Show description for 625cbf2
ericvsmith
committed
625cbf2
View commit details
Copy full SHA for 625cbf2
View code at this point
Browse repository at this point
Commits on Aug 28, 2007
Simplified tuple returned by string._formatter_parser to only have
Show description for 9e7c8da
ericvsmith
committed
9e7c8da
View commit details
Copy full SHA for 9e7c8da
View code at this point
Browse repository at this point
Code layout changes for PEP 7 compliance.
ericvsmith
committed
0cb431c
View commit details
Copy full SHA for 0cb431c
View code at this point
Browse repository at this point
Commits on Aug 27, 2007
Moved fieldnameiterator and formatteriterator to stringlib/string_format.h, so that they can be used when backporting to 2.6.
ericvsmith
committed
f6db409
View commit details
Copy full SHA for f6db409
View code at this point
Browse repository at this point
Cleanup in anticipation of moving formatteriterator and fieldnameiterator into stringlib/string_format.h.
ericvsmith
committed
7a6dd29
View commit details
Copy full SHA for 7a6dd29
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.