17 Commits (cb39d1f466eeecbec969f50a5df609eb0a863084)

Author SHA1 Message Date
Benjamin Peterson 0ee22bf774 fix format spec recursive expansion (closes #19729) 12 years ago
Benjamin Peterson d2b58a9880 only recursively expand in the format spec (closes #17644) 13 years ago
Benjamin Peterson 4d94474ba3 rewrite the parsing of field names to be more consistent wrt recursive expansion 13 years ago
Victor Stinner 8f674ccd64 Close #17694: Add minimum length to _PyUnicodeWriter 13 years ago
Victor Stinner cfc4c13b04 Add _PyUnicodeWriter_WriteSubstring() function 13 years ago
Serhiy Storchaka 18809fa94e Remove unused defines. 13 years ago
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
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 b37b17423b Replace PyUnicode_FromUnicode(NULL, 0) by PyUnicode_New(0, 0) 14 years ago
Victor Stinner 7931d9a951 Replace PyUnicodeObject type by PyObject 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
Martin v. Löwis d63a3b8beb Implement PEP 393. 14 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) 14 years ago
Eric V. Smith 12ebefc9d3 Closes #12579. Positional fields with str.format_map() now raise a ValueError instead of SystemError. 15 years ago
Ezio Melotti 24b07bcba3 #11515: fix several typos. Patch by Piotr Kasprzyk. 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
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
Benjamin Peterson 99bcf5ce08 Merged revisions 81823,81835 via svnmerge from 16 years ago
Benjamin Peterson 59a1b2f732 Merged revisions 81820 via svnmerge from 16 years ago
Benjamin Peterson c971913f84 Merged revisions 81820 via svnmerge from 16 years ago
Benjamin Peterson 13e934acc0 correctly overflow when indexes are too large 16 years ago
Antoine Pitrou 7f14f0d8a0 Recorded merge of revisions 81032 via svnmerge from 16 years ago
Antoine Pitrou f95a1b3c53 Recorded merge of revisions 81029 via svnmerge from 16 years ago
Antoine Pitrou c7c96a90bc Recorded merge of revisions 81029 via svnmerge from 16 years ago
Antoine Pitrou c83ea137d7 Untabify C files. Will watch buildbots. 16 years ago
Eric Smith 41669caebc Merged revisions 72848 via svnmerge from 17 years ago
Eric Smith f73758f012 Merged revisions 72848 via svnmerge from 17 years ago
Eric Smith 4b94b192ff Issue 6089: str.format raises SystemError. 17 years ago
Georg Brandl fb526ac34a Merged revisions 72159 via svnmerge from 17 years ago
Georg Brandl ca87fa5a5b #5889: remove comma at the end of a list that some C compilers don't like. 17 years ago
Eric Smith 8ec90443f5 Merged revisions 70364 via svnmerge from 17 years ago
Eric Smith 6f42edb682 Issue 5237, Allow auto-numbered replacement fields in str.format() strings. 17 years ago
Mark Dickinson e94c679df0 Issue #1717: rename tp_compare to tp_reserved. I'll change the 17 years ago
Eric Smith e5bdccc77b Backport of r63826. 18 years ago
Georg Brandl 559e5d7f4d #2630: Implement PEP 3138. 18 years ago
Gregory P. Smith dd96db63f6 This reverts r63675 based on the discussion in this thread: 18 years ago
Eric Smith ba8c028391 Refactored known type optimization, in anticipation of backporting to 2.6. I'll probably move this code into PyObject_Format, so everyone benefits. 18 years ago
Eric Smith 1d138f1c1a Optimization of str.format() for cases with unicode, long, and float 18 years ago
Christian Heimes 72b710a596 Renamed PyString to PyBytes 18 years ago
Christian Heimes 593daf545b Renamed PyString to PyBytes 18 years ago
Martin v. Löwis 5a6f4585fd Merged revisions 62199 via svnmerge from 18 years ago
Martin v. Löwis d918e4e068 Bug #2388: Fix gcc warnings when compiling with --enable-unicode=ucs4. 18 years ago
Eric Smith ecbac8f38f Corrected assert to check for correct type in py3k. 18 years ago