202 Commits (ce179bf6baed91ba84cc3ff647e96287c3b8e2f2)

Author SHA1 Message Date
Eric Smith 6d7e7a730e Merged revisions 64491 via svnmerge from 18 years ago
Eric Smith 65fe47b931 Modified interface to _Py_[String|Unicode]InsertThousandsGrouping, in anticipation of fixing issue 3140. 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
Eric Smith 4a7d76ddb5 Refactor and clean up str.format() code (and helpers) in advance of optimizations. 18 years ago
Eric Smith dc13b79a38 Refactor and clean up str.format() code (and helpers) in advance of optimizations. 18 years ago
Christian Heimes 72b710a596 Renamed PyString to PyBytes 18 years ago
Christian Heimes 593daf545b Renamed PyString to PyBytes 18 years ago
Eric Smith 5807c415c5 Merged revisions 63078 via svnmerge from 18 years ago
Eric Smith cf537ff39e Addresses issue 2802: 'n' formatting for integers. 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
Christian Heimes 1a6387e683 Merged revisions 61750,61752,61754,61756,61760,61763,61768,61772,61775,61805,61809,61812,61819,61917,61920,61930,61933-61934 via svnmerge from 18 years ago
Christian Heimes b186d0084c Merged revisions 61431,61433-61436,61439,61444,61449-61450,61453,61458,61465,61468,61471-61474,61480,61483-61484,61488,61495-61496,61498,61503-61504,61507,61509-61510,61515-61518 via svnmerge from 18 years ago
Eric Smith 8113ca63b9 Issue 2264: empty float presentation type needs to have at least one digit past the decimal point. 18 years ago
Eric Smith ecbac8f38f Corrected assert to check for correct type in py3k. 18 years ago
Eric Smith 4b051eecb9 Corrected assert to check for correct type in py3k. 18 years ago
Christian Heimes c3f30c4337 Merged revisions 60481,60485,60489-60492,60494-60496,60498-60499,60501-60503,60505-60506,60508-60509,60523-60524,60532,60543,60545,60547-60548,60552,60554,60556-60559,60561-60562,60569,60571-60572,60574,60576-60583,60585-60586,60589,60591,60594-60595,60597-60598,60600-60601,60606-60612,60615,60617,60619-60621,60623-60625,60627-60629,60631,60633,60635,60647,60650,60652,60654,60656,60658-60659,60664-60666,60668-60670,60672,60676,60678,60680-60683,60685-60686,60688,60690,60692-60694,60697-60700,60705-60706,60708,60711,60714,60720,60724-60730,60732,60736,60742,60744,60746,60748,60750-60751,60753,60756-60757,60759-60761,60763-60764,60766,60769-60770,60774-60784,60787-60789,60793,60796,60799-60809,60812-60813,60815-60821,60823-60826,60828-60829,60831-60834,60836,60838-60839,60846-60849,60852-60854,60856-60859,60861-60870,60874-60875,60880-60881,60886,60888-60890,60892,60894-60898,60900-60931,60933-60958 via svnmerge from 18 years ago
Eric Smith 8a803dd94b Now that PyOS_ascii_formatd supports the 'n' format, simplify the float formatting code to just call it. 18 years ago
Eric Smith 8a0217cd86 Port 60893 to py3k, without unicode test. 18 years ago
Eric Smith bc32fee029 Added code to correct combining str and unicode in ''.format(). Added test case. 18 years ago
Eric Smith 8fd3eba050 Fixes for shared 2.6 code that implements PEP 3101, advanced string 18 years ago
Eric Smith a9f7d62480 Backport of PEP 3101, Advanced String Formatting, from py3k. 18 years ago
Eric Smith fa767efe06 Partially revert r60376: restore ability for ints to be automatically converted to floats, if a float type specifier is given to an int. PEP 3101 should be clarified on this point.Also, remove unused local variables left over from r60376. 18 years ago
Eric Smith 7b69c6c3af Restrict format presentation types to those specified in the 'Standard Format Specifiers' section of PEP 3101. 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 0ded5b54bb Fixed issue #1564: The set implementation should special-case PyUnicode instead of PyString 18 years ago
Christian Heimes 217cfd1c86 Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases in intobject.h 18 years ago
Christian Heimes 9cd177526a Merged revisions 59005-59040 via svnmerge from 18 years ago
Facundo Batista 6f7e6fb7a2 Made _ParseTupleFinds only defined to unicodeobject.c 18 years ago
Facundo Batista 292a069b88 Fix for stupid error (I need to remember to do a full 'make clean + make' 18 years ago
Facundo Batista 57d5669f4b Now in find, rfind, index, and rindex, you can use None as defaults, 18 years ago
Thomas Heller 519a042c7c Replace PyObject_Unicode with PyObject_Str everywhere, and remove the 18 years ago
Guido van Rossum 98297ee781 Merging the py3k-pep3137 branch back into the py3k branch. 18 years ago
Gregory P. Smith 60d241f135 For PEP3137: Adds missing methods to the mutable PyBytes object (soon 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 37f10386f1 Changed to use 'U' argument to PyArg_ParseTuple, instead of manually checking for unicode objects. 19 years ago
Eric Smith 185e30cdf3 Added format tests. 19 years ago
Guido van Rossum 39342f4e65 Patch # 1048 by Amaury Forgeot d'Arc. 19 years ago
Eric Smith 44300950dc Corrected missed #if in r57652. 19 years ago
Eric Smith b7f5ba16db Added conditional compilation for '()', which was an allowed sign code in a 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 79710cdea1 Changed STRINGLIB_CMP from an inline function to a macro in order to avoid a 'defined but not used' warning. 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