]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fixes for shared 2.6 code that implements PEP 3101, advanced string
authorEric Smith <eric@trueblade.com>
Sun, 17 Feb 2008 19:48:00 +0000 (19:48 +0000)
committerEric Smith <eric@trueblade.com>
Sun, 17 Feb 2008 19:48:00 +0000 (19:48 +0000)
commit8fd3eba0501a77eec463179f529f56025ff4b40b
treed459220bd52a30ce3de89b89ed1db077e7b5d4a4
parent18c66898b0a14761786161c07d89d65c8f088601
Fixes for shared 2.6 code that implements PEP 3101, advanced string
formatting.

Includes:
 - Modifying tests for basic types to use __format__ methods, instead
   of builtin "format".
 - Adding PyObject_Format.
 - General str/unicode cleanup discovered when backporting to 2.6.
 - Removing datetimemodule.c's time_format, since it was identical
   to date_format.

The files in Objects/stringlib that implement PEP 3101 (stringdefs.h,
unicodedefs.h, formatter.h, string_format.h) are identical in trunk
and py3k.  Any changes from here on should be made to trunk, and
changes will propogate to py3k).
Include/abstract.h
Lib/test/test_builtin.py
Lib/test/test_datetime.py
Modules/datetimemodule.c
Objects/abstract.c
Objects/stringlib/formatter.h
Objects/stringlib/string_format.h
Objects/stringlib/stringdefs.h
Objects/stringlib/unicodedefs.h
Python/bltinmodule.c