[Python-Dev] [Python-checkins] cpython: Implement PEP 393. (original) (raw)
Eric V. Smith eric at trueblade.com
Thu Sep 29 01:21:48 CEST 2011
- Previous message: [Python-Dev] What it takes to change a single keyword.
- Next message: [Python-Dev] [Python-checkins] cpython: Enhance Py_ARRAY_LENGTH(): fail at build time if the argument is not an array
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Is there some reason str.format had such major surgery done to it? It appears parts of it were removed from stringlib. I had not even thought to look at the code before it was merged, as it never occurred to me anyone would do that.
I left it in stringlib even in 3.x because there's the occasional talk of adding bytes.bformat, and since all of the code works well with stringlib (since it was used by str and unicode in 2.x), it made sense to leave it there.
In addition, there are outstanding patches that are now broken.
I'd prefer it return to how it used to be, and just the minimum changes required for PEP 393 be made to it.
Thanks. Eric.
On 9/28/2011 2:35 AM, martin.v.loewis wrote:
http://hg.python.org/cpython/rev/8beaa9a37387 changeset: 72475:8beaa9a37387 user: Martin v. Löwis <martin at v.loewis.de> date: Wed Sep 28 07:41:54 2011 +0200 summary: Implement PEP 393.
files: Doc/c-api/unicode.rst | 9 + Include/Python.h | 5 + Include/complexobject.h | 5 +- Include/floatobject.h | 5 +- Include/longobject.h | 6 +- Include/pyerrors.h | 6 + Include/pyport.h | 3 + Include/unicodeobject.h | 783 +- Lib/json/decoder.py | 3 +- Lib/test/jsontests/testscanstring.py | 11 +- Lib/test/testcodeccallbacks.py | 7 +- Lib/test/testcodecs.py | 4 + Lib/test/testpeepholer.py | 4 - Lib/test/testre.py | 7 + Lib/test/testsys.py | 38 +- Lib/test/testunicode.py | 41 +- Makefile.pre.in | 6 +- Misc/NEWS | 2 + Modules/codecsmodule.c | 8 +- Modules/csv.c | 2 +- Modules/ctypes/ctypes.c | 6 +- Modules/ctypes/callproc.c | 8 - Modules/ctypes/cfield.c | 64 +- Modules/cursesmodule.c | 7 +- Modules/datetimemodule.c | 13 +- Modules/dbmmodule.c | 12 +- Modules/elementtree.c | 31 +- Modules/io/iomodule.h | 2 +- Modules/io/stringio.c | 69 +- Modules/io/textio.c | 352 +- Modules/json.c | 252 +- Modules/pickle.c | 4 +- Modules/sqlite/connection.c | 19 +- Modules/sre.c | 382 +- Modules/testcapimodule.c | 2 +- Modules/tkinter.c | 70 +- Modules/arraymodule.c | 8 +- Modules/md5module.c | 10 +- Modules/operator.c | 27 +- Modules/pyexpat.c | 11 +- Modules/sha1module.c | 10 +- Modules/sha256module.c | 10 +- Modules/sha512module.c | 10 +- Modules/sre.h | 4 +- Modules/syslogmodule.c | 14 +- Modules/unicodedata.c | 28 +- Modules/zipimport.c | 141 +- Objects/abstract.c | 4 +- Objects/bytearrayobject.c | 147 +- Objects/bytesobject.c | 127 +- Objects/codeobject.c | 15 +- Objects/complexobject.c | 19 +- Objects/dictobject.c | 20 +- Objects/exceptions.c | 26 +- Objects/fileobject.c | 17 +- Objects/floatobject.c | 19 +- Objects/longobject.c | 84 +- Objects/moduleobject.c | 9 +- Objects/object.c | 10 +- Objects/setobject.c | 40 +- Objects/stringlib/count.h | 9 +- Objects/stringlib/eq.h | 23 +- Objects/stringlib/fastsearch.h | 4 +- Objects/stringlib/find.h | 31 +- Objects/stringlib/formatter.h | 1516 -- Objects/stringlib/localeutil.h | 27 +- Objects/stringlib/partition.h | 12 +- Objects/stringlib/split.h | 26 +- Objects/stringlib/stringformat.h | 1385 -- Objects/stringlib/stringdefs.h | 2 + Objects/stringlib/ucs1lib.h | 35 + Objects/stringlib/ucs2lib.h | 34 + Objects/stringlib/ucs4lib.h | 34 + Objects/stringlib/undef.h | 10 + Objects/stringlib/unicodeformat.h | 1416 ++ Objects/stringlib/unicodedefs.h | 2 + Objects/typeobject.c | 18 +- Objects/unicodeobject.c | 6112 ++++++++--- Objects/uniops.h | 91 + PC/subprocess.c | 61 +- PC/importnt.c | 2 +- PC/msvcrtmodule.c | 8 +- PC/pyconfig.h | 4 - PC/winreg.c | 8 +- Parser/tokenizer.c | 6 +- Python/warnings.c | 16 +- Python/ast.c | 61 +- Python/bltinmodule.c | 26 +- Python/ceval.c | 17 +- Python/codecs.c | 44 +- Python/compile.c | 89 +- Python/errors.c | 4 +- Python/formatterunicode.c | 1445 ++- Python/getargs.c | 46 +- Python/import.c | 347 +- Python/marshal.c | 4 +- Python/peephole.c | 18 - Python/symtable.c | 8 +- Python/traceback.c | 59 +- Tools/gdb/libpython.py | 27 +- configure | 65 +- configure.in | 46 +- pyconfig.h.in | 6 -
- Previous message: [Python-Dev] What it takes to change a single keyword.
- Next message: [Python-Dev] [Python-checkins] cpython: Enhance Py_ARRAY_LENGTH(): fail at build time if the argument is not an array
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]