summaryrefslogtreecommitdiffstats
path: root/Objects/stringlib/unicodedefs.h
Commit message (Collapse)AuthorAgeFilesLines
* Replace PyObject_Unicode with PyObject_Str everywhere, and remove theThomas Heller2007-11-151-1/+1
| | | | #define for PyObject_Unicode in object.h.
* For PEP3137: Adds missing methods to the mutable PyBytes object (soonGregory P. Smith2007-10-161-0/+2
| | | | | | | | to be called a buffer). Shares code with stringobject when possible. Adds unit tests with common code that should be usable to test the PEPs mutable buffer() and immutable bytes() types. http://bugs.python.org/issue1261
* Changed to use 'U' argument to PyArg_ParseTuple, instead of manually ↵Eric Smith2007-09-011-0/+1
| | | | checking for unicode objects.
* Changed STRINGLIB_CMP from an inline function to a macro in order to avoid a ↵Eric Smith2007-08-281-0/+11
| | | | 'defined but not used' warning.
* Implementation of PEP 3101, Advanced String Formatting.Eric Smith2007-08-251-0/+32
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.