144 Commits (f86a5e8a93ab293d4cc00a8f2835d6d2cd3baa69)

Author SHA1 Message Date
Victor Stinner d7b7c7472b Issue #14993: Use standard "unsigned char" instead of a unsigned char bitfield 14 years ago
Victor Stinner d3f0882dfb Issue #14744: Use the new _PyUnicodeWriter internal API to speed up str%args and str.format(args) 14 years ago
Antoine Pitrou 63065d761e Issue #14624: UTF-16 decoding is now 3x to 4x faster on various inputs. 14 years ago
Antoine Pitrou ca5f91b888 Issue #14738: Speed-up UTF-8 decoding on non-ASCII data. Patch by Serhiy Storchaka. 14 years ago
Victor Stinner 3b1a74a9c3 Rename unicode_write_t structure and its methods to "_PyUnicodeWriter" 14 years ago
Victor Stinner ee4544c920 Issue #14744: Inline unicode_writer_write_char() and unicode_write_str() 14 years ago
Victor Stinner 202fdca133 Close #14716: str.format() now uses the new "unicode writer" API instead of the 14 years ago
Victor Stinner 41a863cb81 Issue #13706: Fix format(int, "n") for locale with non-ASCII thousands separator 14 years ago
Benjamin Peterson 21e0da228d remove some usage of Py_UNICODE_TOUPPER/LOWER 14 years ago
Victor Stinner 6099a03202 Issue #13624: Write a specialized UTF-8 encoder to allow more optimization 14 years ago
Victor Stinner f8eac00779 Issue #13623: Fix a performance regression introduced by issue #12170 in 14 years ago
Victor Stinner b37b17423b Replace PyUnicode_FromUnicode(NULL, 0) by PyUnicode_New(0, 0) 14 years ago
Antoine Pitrou 0a3229de6b Issue #13417: speed up utf-8 decoding by around 2x for the non-fully-ASCII case. 14 years ago
Victor Stinner 0fc35196bb stringlib: remove unused STRINGLIB_FILL 14 years ago
Victor Stinner 7931d9a951 Replace PyUnicodeObject type by PyObject 14 years ago
Victor Stinner 9db1a8b69f Replace PyUnicodeObject* by PyObject* where it was irrevelant 14 years ago
Antoine Pitrou ac65d96777 Issue #12170: The count(), find(), rfind(), index() and rindex() methods 14 years ago
Antoine Pitrou 5b9f4c1539 Fix typo 14 years ago
Antoine Pitrou c198d0599b Add a comment explaining this heuristic. 14 years ago
Antoine Pitrou dda339e6d2 Simplify heuristic for when to use memchr 14 years ago
Antoine Pitrou dd4e2f0153 Issue #13155: Optimize finding the optimal character width of an unicode string 14 years ago
Victor Stinner d218bf14cc stringlib: Fix STRINGLIB_STR for UCS2/UCS4 14 years ago
Victor Stinner 8cc70dcf70 Fix fastsearch for UCS2 and UCS4 14 years ago
Antoine Pitrou 2c3b2302ad Issue #13134: optimize finding single-character strings using memchr 14 years ago
Martin v. Löwis c47adb04b3 Change PyUnicode_KIND to 1,2,4. Drop _KIND_SIZE and _CHARACTER_SIZE. 14 years ago
Antoine Pitrou 4574e62c6e Fix massive slowdown in string formatting with str.format. 14 years ago
Antoine Pitrou dbf697ae5c Fix compilation warnings under 64-bit Windows 14 years ago
Victor Stinner c3cec7868b Add asciilib: similar to ucs1, ucs2 and ucs4 library, but specialized to ASCII 14 years ago
Victor Stinner e57b1c0da1 Mark PyUnicode_FromUCS[124] as private 15 years ago
Martin v. Löwis d63a3b8beb Implement PEP 393. 15 years ago
Mark Dickinson c7d93b7614 Issue #1621: Fix undefined behaviour from signed overflow in datetime module hashes, array and list iterations, and get_integer (stringlib/string_format.h) 15 years ago
Mark Dickinson 36f27c995a Issue #1621: Fix undefined behaviour from signed overflow in get_integer (stringlib/formatter.h) 15 years ago
Eric V. Smith 12ebefc9d3 Closes #12579. Positional fields with str.format_map() now raise a ValueError instead of SystemError. 15 years ago
Jesus Cea ac4515063c startswith and endswith don't accept None as slice index. Patch by Torsten Becker. (closes #11828) 15 years ago
Ezio Melotti 42da663e6f #11515: fix several typos. Patch by Piotr Kasprzyk. 15 years ago
Eric Smith a1eac7218b Issue #11302: missing type check on _string.formatter_field_name_split and _string.formatter_parser caused crash. 15 years ago
Eric Smith 984bb58000 Issue #7094: Add alternate ('#') flag to __format__ methods for float, complex and Decimal. Allows greater control over when decimal points appear. Added to make transitioning from %-formatting easier. '#g' still has a problem with Decimal which I'll fix soon. 15 years ago
Antoine Pitrou a277ec4ad9 Followup to r86170: fix reference leak in str.format 15 years ago
Eric Smith 27bbca6f79 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. 15 years ago
Georg Brandl 66c221e993 #9418: first step of moving private string methods to _string module. 15 years ago
Florent Xicluna eb6f3ead00 Fix #8530: Prevent stringlib fastsearch from reading beyond the front of an array. 16 years ago
Mark Dickinson 388122d43b Issue #9337: Make float.__str__ identical to float.__repr__. 16 years ago
Mark Dickinson fc070313dd Merged revisions 83400 via svnmerge from 16 years ago
Mark Dickinson 5b65df7ce2 Issue #9416: Fix some issues with complex formatting where the 16 years ago
Benjamin Peterson 3b107f99c7 remove unneeded error check 16 years ago
Benjamin Peterson 99bcf5ce08 Merged revisions 81823,81835 via svnmerge from 16 years ago
Benjamin Peterson 504b6e8115 Merged revisions 81824 via svnmerge from 16 years ago
Benjamin Peterson 59a1b2f732 Merged revisions 81820 via svnmerge from 16 years ago
Benjamin Peterson d240071cd8 Merged revisions 81813 via svnmerge from 16 years ago
Antoine Pitrou 7f14f0d8a0 Recorded merge of revisions 81032 via svnmerge from 16 years ago