Amaury Forgeot d'Arc
6d766fc3fa
Silence last compilation warning.
15 years ago
Amaury Forgeot d'Arc
cd27df3a99
Fix compilation warnings (seen on win32 buildbot)
15 years ago
Victor Stinner
a4ac600d6f
Issue #13706 : Support non-ASCII fill characters
15 years ago
Eric V. Smith
d25cfe66f5
Improve exception text. Closes issue 13811.
15 years ago
Benjamin Peterson
21e0da228d
remove some usage of Py_UNICODE_TOUPPER/LOWER
15 years ago
Victor Stinner
3fe553160c
Add a new PyUnicode_Fill() function
It is faster than the unicode_fill() function which was implemented in
formatter_unicode.c.
15 years ago
Mark Dickinson
47862d4c0e
Issue #9530 : Fix undefined behaviour due to signed overflow in Python/formatter_unicode.c.
15 years ago
Victor Stinner
c4f281eba3
Fix misuse of PyUnicode_GET_SIZE, use PyUnicode_GET_LENGTH instead
15 years ago
Martin v. Löwis
c47adb04b3
Change PyUnicode_KIND to 1,2,4. Drop _KIND_SIZE and _CHARACTER_SIZE.
15 years ago
Victor Stinner
fb9ea8c57e
Don't check for the maximum character when copying from unicodeobject.c
* Create copy_characters() function which doesn't check for the maximum
character in release mode
* _PyUnicode_CheckConsistency() is no more static to be able to use it
in _PyUnicode_FormatAdvanced() (in formatter_unicode.c)
* _PyUnicode_CheckConsistency() checks the string hash
15 years ago
Victor Stinner
c3cec7868b
Add asciilib: similar to ucs1, ucs2 and ucs4 library, but specialized to ASCII
ucs1, ucs2 and ucs4 libraries have to scan created substring to find the
maximum character, whereas it is not need to ASCII strings. Because ASCII
strings are common, it is useful to optimize ASCII.
15 years ago
Victor Stinner
fd85c3aa8d
fill_number() and format_string_internal() check for PyUnicode_CopyCharacters() failure
15 years ago
Victor Stinner
dba2deeca2
fill_number() ensures that the 'digits' string is ready
15 years ago
Victor Stinner
afbaa20fb9
fill_char() can now propagate an error
15 years ago
Martin v. Löwis
d63a3b8beb
Implement PEP 393.
15 years ago
Mark Dickinson
b42dab5452
Merged revisions 75441 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r75441 | mark.dickinson | 2009-10-15 20:55:18 +0100 (Thu, 15 Oct 2009) | 9 lines
Merged revisions 75440 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75440 | mark.dickinson | 2009-10-15 18:45:39 +0100 (Thu, 15 Oct 2009) | 1 line
Allow core Python build to succeed under WITHOUT_COMPLEX. The module build stage still fails.
........
................
17 years ago
Mark Dickinson
01458c7a62
Remove the uses of WITHOUT_COMPLEX introduced in r75471
17 years ago
Mark Dickinson
42e30556e5
Merged revisions 75440 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75440 | mark.dickinson | 2009-10-15 18:45:39 +0100 (Thu, 15 Oct 2009) | 1 line
Allow core Python build to succeed under WITHOUT_COMPLEX. The module build stage still fails.
........
17 years ago
Eric Smith
58a42244cf
Issue #1588 : Add complex.__format__.
17 years ago
Eric Smith
4a7d76ddb5
Refactor and clean up str.format() code (and helpers) in advance of optimizations.
18 years ago
Eric Smith
8c66326368
Implementation of PEP 3101, Advanced String Formatting.
Known issues:
The string.Formatter class, as discussed in the PEP, is incomplete.
Error handling needs to conform to the PEP.
Need to fix this warning that I introduced in Python/formatter_unicode.c:
Objects/stringlib/unicodedefs.h:26: warning: `STRINGLIB_CMP' defined but not used
Need to make sure sign formatting is correct, more tests needed.
Need to remove '()' sign formatting, left over from an earlier version of the PEP.
19 years ago