cpython/Objects
Eric Smith e5bdccc77b Backport of r63826.
Optimization of str.format() for cases with str, unicode, int, long,
and float arguments.  This gives about 30% speed improvement for the
simplest (but most common) cases.  This patch skips the __format__
dispatch, and also avoids creating an object to hold the format_spec.

Unfortunately there's a complication in 2.6 with int, long, and float
because they always expect str format_specs.  So in the unicode
version of this optimization, just check for unicode objects.  int,
float, long, and str can be added later, if needed.
2008-08-18 14:27:38 +00:00
..
stringlib Backport of r63826. 2008-08-18 14:27:38 +00:00
abstract.c Fix memory leak: Always DECREF obj in PyBuffer_Release. 2008-08-14 20:12:06 +00:00
boolobject.c This reverts r63675 based on the discussion in this thread: 2008-06-09 04:58:54 +00:00
bufferobject.c Change the warning emitted for using the buffer() object; memoryview() in 3.0 2008-08-08 04:15:53 +00:00
bytearrayobject.c Fix a refleak in bytearray.split and bytearray.rsplit, detected by 2008-08-17 21:05:18 +00:00
bytes_methods.c This reverts r63675 based on the discussion in this thread: 2008-06-09 04:58:54 +00:00
cellobject.c This reverts r63675 based on the discussion in this thread: 2008-06-09 04:58:54 +00:00
classobject.c This reverts r63675 based on the discussion in this thread: 2008-06-09 04:58:54 +00:00
cobject.c PEP 3123: Provide forward compatibility with Python 3.0, while keeping 2007-07-21 06:55:02 +00:00
codeobject.c This reverts r63675 based on the discussion in this thread: 2008-06-09 04:58:54 +00:00
complexobject.c This reverts r63675 based on the discussion in this thread: 2008-06-09 04:58:54 +00:00
descrobject.c This reverts r63675 based on the discussion in this thread: 2008-06-09 04:58:54 +00:00
dictnotes.txt Patch #1397848: add the reasoning behind no-resize-on-shrinkage. 2007-02-15 09:51:35 +00:00
dictobject.c - Issue #3537: Fix an assertion failure when an empty but presized dict 2008-08-11 09:07:59 +00:00
enumobject.c Convert from long to Py_ssize_t. 2008-07-24 07:04:55 +00:00
exceptions.c backport r64751 2008-07-30 17:45:10 +00:00
fileobject.c Issue #3139: Make buffer-interface thread-safe wrt. PyArg_ParseTuple, 2008-08-12 14:49:50 +00:00
floatobject.c Issue #3008: add instance method float.hex and class method float.fromhex 2008-07-15 19:08:33 +00:00
frameobject.c Issue2378: pdb would delete free variables when stepping into a class statement. 2008-07-21 22:00:38 +00:00
funcobject.c This reverts r63675 based on the discussion in this thread: 2008-06-09 04:58:54 +00:00
genobject.c This reverts r63675 based on the discussion in this thread: 2008-06-09 04:58:54 +00:00
intobject.c - Issue #2862: Make int and float freelist management consistent with other 2008-07-06 03:35:58 +00:00
iterobject.c PEP 3123: Provide forward compatibility with Python 3.0, while keeping 2007-07-21 06:55:02 +00:00
listobject.c Issue 2235: __hash__ is once again inherited by default, but inheritance can be blocked explicitly so that collections.Hashable remains meaningful 2008-07-15 14:27:37 +00:00
listsort.txt typo fix 2006-08-01 16:24:30 +00:00
longobject.c Issue #1481296: (again!) Make conversion of a float NaN to an int or 2008-08-04 21:30:09 +00:00
methodobject.c This reverts r63675 based on the discussion in this thread: 2008-06-09 04:58:54 +00:00
moduleobject.c This reverts r63675 based on the discussion in this thread: 2008-06-09 04:58:54 +00:00
object.c Issue 2235: __hash__ is once again inherited by default, but inheritance can be blocked explicitly so that collections.Hashable remains meaningful 2008-07-15 14:27:37 +00:00
obmalloc.c Issue #2620: Overflow checking when allocating or reallocating memory 2008-07-22 04:46:32 +00:00
rangeobject.c Added better pickling support to xrange objects. 2008-06-10 04:01:23 +00:00
setobject.c Issue 2235: __hash__ is once again inherited by default, but inheritance can be blocked explicitly so that collections.Hashable remains meaningful 2008-07-15 14:27:37 +00:00
sliceobject.c Issue #3004: Minor fix to slice.indices(). slice(-10).indices(9) now 2008-06-20 14:53:43 +00:00
stringobject.c Issue #3139: Make buffer-interface thread-safe wrt. PyArg_ParseTuple, 2008-08-12 14:49:50 +00:00
structseq.c This reverts r63675 based on the discussion in this thread: 2008-06-09 04:58:54 +00:00
tupleobject.c Security patches from Apple: prevent int overflow when allocating memory 2008-07-31 17:17:14 +00:00
typeobject.c Issue 2235: Py3k warnings are now emitted for classes that will no longer inherit a__hash__ implementation from a parent class in Python 3.x. The standard library and test suite have been updated to not emit these warnings. 2008-08-11 15:45:58 +00:00
unicodectype.c
unicodeobject.c Correct a crash when two successive unicode allocations fail with a MemoryError: 2008-07-31 23:39:05 +00:00
unicodetype_db.h
weakrefobject.c Issue 3110: Crash with weakref subclass, 2008-06-16 19:12:42 +00:00