39 Commits (ecd4e9de5afab6a5d75a6fa7ebfb62804ba69264)

Author SHA1 Message Date
Eric V. Smith 12ebefc9d3 Closes #12579. Positional fields with str.format_map() now raise a ValueError instead of SystemError. 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
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
Eric Smith 41669caebc Merged revisions 72848 via svnmerge from 17 years ago
Georg Brandl fb526ac34a Merged revisions 72159 via svnmerge from 17 years ago
Eric Smith 8ec90443f5 Merged revisions 70364 via svnmerge from 17 years ago
Mark Dickinson e94c679df0 Issue #1717: rename tp_compare to tp_reserved. I'll change the 17 years ago
Georg Brandl 559e5d7f4d #2630: Implement PEP 3138. 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
Martin v. Löwis 5a6f4585fd Merged revisions 62199 via svnmerge from 18 years ago
Eric Smith ecbac8f38f Corrected assert to check for correct type in py3k. 18 years ago
Eric Smith 8a0217cd86 Port 60893 to py3k, without unicode test. 18 years ago
Eric Smith 8fd3eba050 Fixes for shared 2.6 code that implements PEP 3101, advanced string 18 years ago
Christian Heimes 90aa7646af #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. 18 years ago
Christian Heimes 217cfd1c86 Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases in intobject.h 18 years ago
Thomas Heller 519a042c7c Replace PyObject_Unicode with PyObject_Str everywhere, and remove the 18 years ago
Eric Smith 45c078736e Simplified recursion logic. Modified variable name to match string.Formatter. 19 years ago
Eric Smith 11529195ca Changed some ValueError's to KeyError and IndexError. 19 years ago
Eric Smith 4cb4e4e882 Fix segfault discovered by Ron Adam. Not checking for terminating right bracket in "'{0[}'.format(())". Fixed, and tests added. 19 years ago
Eric Smith 625cbf28ee Modified parsing of format strings, so that we always return 19 years ago
Eric Smith 9e7c8da61c Simplified tuple returned by string._formatter_parser to only have 19 years ago
Eric Smith 0cb431c071 Code layout changes for PEP 7 compliance. 19 years ago
Eric Smith f6db40994f Moved fieldnameiterator and formatteriterator to stringlib/string_format.h, so that they can be used when backporting to 2.6. 19 years ago
Eric Smith 7a6dd29067 Cleanup in anticipation of moving formatteriterator and fieldnameiterator into stringlib/string_format.h. 19 years ago
Neal Norwitz 8a4eb298e2 Fix refleaks in test_unicode and test_string related to the new format code. 19 years ago
Neal Norwitz 247b5154ac This adds a leak, but fixes a crash. The leaking code is: 19 years ago
Eric Smith 7ade6485ab PEP 3101: Completed string.Formatter class. Reimplemented field_name to object transformation. 19 years ago
Neal Norwitz 3ef6a57908 Get rid of compiler warning on 64-bit 19 years ago
Eric Smith 8c66326368 Implementation of PEP 3101, Advanced String Formatting. 19 years ago