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
Events
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
stringlib
formatter.h
on
2.7
User selector
All users
Datepicker
All time
Commit history
Commits on Sep 7, 2016
Issue #27895: Spelling fixes (Contributed by Ville Skyttä).
vadmium
committed
6507657
View commit details
Copy full SHA for 6507657
View code at this point
Browse repository at this point
Commits on May 8, 2016
Corrections for a/an in code comments and documentation
vadmium
committed
4f23cab
View commit details
Copy full SHA for 4f23cab
View code at this point
Browse repository at this point
Commits on Nov 9, 2015
Issue #7267: format(int, 'c') now raises OverflowError when the argument is not
Show description for e192d0b
vstinner
committed
e192d0b
View commit details
Copy full SHA for e192d0b
View code at this point
Browse repository at this point
Commits on Apr 14, 2014
Issue #12546: Allow \x00 as a fill character for builtin type __format__ methods.
ericvsmith
committed
9a55cd8
View commit details
Copy full SHA for 9a55cd8
View code at this point
Browse repository at this point
Commits on Jun 23, 2013
Issue #18137: Detect integer overflow on precision in float.__format__()
Show description for 7603881
vstinner
committed
7603881
View commit details
Copy full SHA for 7603881
View code at this point
Browse repository at this point
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
75d3600
View commit details
Copy full SHA for 75d3600
View code at this point
Browse repository at this point
Commits on Aug 1, 2010
Merged revisions 83400 via svnmerge from
Show description for aad57bd
mdickinson
committed
aad57bd
View commit details
Copy full SHA for aad57bd
View code at this point
Browse repository at this point
Commits on Jun 7, 2010
remove extra byte and fix comment
benjaminp
committed
7dbe3e3
View commit details
Copy full SHA for 7dbe3e3
View code at this point
Browse repository at this point
locale grouping strings should end in '\0'
benjaminp
committed
c4afe29
View commit details
Copy full SHA for c4afe29
View code at this point
Browse repository at this point
Commits on Feb 23, 2010
Issue #6902: Fix problem with built-in types format incorrectly with 0 padding.
ericvsmith
committed
87bcb24
View commit details
Copy full SHA for 87bcb24
View code at this point
Browse repository at this point
Commits on Feb 22, 2010
Issue #7988: Fix default alignment to be right aligned for complex.__format__. Now it matches other numeric types.
ericvsmith
committed
f32d4ac
View commit details
Copy full SHA for f32d4ac
View code at this point
Browse repository at this point
Commits on Nov 29, 2009
Issue #3382: Make '%F' and float.__format__('F') convert results to upper case. Much of the patch came from Mark Dickinson.
ericvsmith
committed
c4ab833
View commit details
Copy full SHA for c4ab833
View code at this point
Browse repository at this point
Commits on Nov 23, 2009
Issue #7117, continued: Remove substitution of %g-style formatting for
Show description for 9dd5e16
mdickinson
committed
9dd5e16
View commit details
Copy full SHA for 9dd5e16
View code at this point
Browse repository at this point
Commits on Jul 30, 2009
Issue 6330: Fix --enable-unicode=ucs4.
ericvsmith
committed
5c4a5d2
View commit details
Copy full SHA for 5c4a5d2
View code at this point
Browse repository at this point
Commits on Jul 27, 2009
Sync trunk and py3k versions of string formatting. Will manually merge into py3k.
ericvsmith
committed
e94a826
View commit details
Copy full SHA for e94a826
View code at this point
Browse repository at this point
Commits on May 5, 2009
Issue #5920: Changed format.__float__ and complex.__float__ to use a precision of 12 when using the empty presentation type. This more closely matches str()'s behavior and reduces surprises when ad…
Show description for a985a3a
ericvsmith
committed
a985a3a
View commit details
Copy full SHA for a985a3a
View code at this point
Browse repository at this point
Commits on May 2, 2009
Keep py3k and trunk code in sync.
ericvsmith
committed
27f204d
View commit details
Copy full SHA for 27f204d
View code at this point
Browse repository at this point
Commits on Apr 30, 2009
Issue #1588: Add complex.__format__.
ericvsmith
committed
9139cc6
View commit details
Copy full SHA for 9139cc6
View code at this point
Browse repository at this point
Commits on Apr 22, 2009
Fixed issue 5782: formatting with commas didn't work if no specifier type code was given.
ericvsmith
committed
ebafbb7
View commit details
Copy full SHA for ebafbb7
View code at this point
Browse repository at this point
Backport of some of the work in r71665 to trunk. This reworks much of
Show description for aca19e6
ericvsmith
committed
aca19e6
View commit details
Copy full SHA for aca19e6
View code at this point
Browse repository at this point
Commits on Apr 13, 2009
Fixed incorrect object passed into format_float_internal(). This was resulting in a conversion being done twice.
ericvsmith
committed
8c02324
View commit details
Copy full SHA for 8c02324
View code at this point
Browse repository at this point
Commits on Mar 29, 2009
Issue #532631: Replace confusing fabs(x)/1e25 >= 1e25 test
Show description for 2e648ec
mdickinson
committed
2e648ec
View commit details
Copy full SHA for 2e648ec
View code at this point
Browse repository at this point
Commits on Feb 20, 2009
Issue #5247: Improve error message when unknown format codes are used when using str.format() with str, unicode, long, int, and float arguments.
ericvsmith
committed
e9fb686
View commit details
Copy full SHA for e9fb686
View code at this point
Browse repository at this point
Commits on Aug 24, 2008
Fix:
Show description for 18aa388
nnorwitz
committed
18aa388
View commit details
Copy full SHA for 18aa388
View code at this point
Browse repository at this point
Commits on Jul 17, 2008
Backed out r65069, pending fixing it in Windows.
ericvsmith
committed
d6c393a
View commit details
Copy full SHA for d6c393a
View code at this point
Browse repository at this point
Issue 3382: Make '%F' and float.__format__('F') convert results to upper case.
ericvsmith
committed
454816d
View commit details
Copy full SHA for 454816d
View code at this point
Browse repository at this point
Commits on Jul 16, 2008
Renamed a parameter in calc_number_widths, for consistency with the same parameter in fill_non_digits.
ericvsmith
committed
4cb965c
View commit details
Copy full SHA for 4cb965c
View code at this point
Browse repository at this point
Complete issue 3083: add alternate (#) formatting to bin, oct, hex in str.format().
ericvsmith
committed
a5fa5a2
View commit details
Copy full SHA for a5fa5a2
View code at this point
Browse repository at this point
Commits on Jul 15, 2008
Added '#' formatting to integers. This adds the 0b, 0o, or 0x prefix for bin, oct, hex. There's still one failing case, and I need to finish the docs. I hope to finish those today.
ericvsmith
committed
d0c8412
View commit details
Copy full SHA for d0c8412
View code at this point
Browse repository at this point
Commits on Jun 24, 2008
Fixed formatting with thousands separator and padding. Resolves issue 3140.
ericvsmith
committed
5dce7e9
View commit details
Copy full SHA for 5dce7e9
View code at this point
Browse repository at this point
Typo in comment.
ericvsmith
committed
9ea1e36
View commit details
Copy full SHA for 9ea1e36
View code at this point
Browse repository at this point
Modified interface to _Py_[String|Unicode]InsertThousandsGrouping, in anticipation of fixing issue 3140.
ericvsmith
committed
65fe47b
View commit details
Copy full SHA for 65fe47b
View code at this point
Browse repository at this point
Commits on May 30, 2008
Refactor and clean up str.format() code (and helpers) in advance of optimizations.
ericvsmith
committed
dc13b79
View commit details
Copy full SHA for dc13b79
View code at this point
Browse repository at this point
Commits on May 26, 2008
Renamed PyString to PyBytes
tiran
committed
593daf5
View commit details
Copy full SHA for 593daf5
View code at this point
Browse repository at this point
Commits on May 11, 2008
Addresses issue 2802: 'n' formatting for integers.
Show description for cf537ff
ericvsmith
committed
cf537ff
View commit details
Copy full SHA for cf537ff
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.