cpython/Objects
Eric Smith 5e527ebee1 Added PyNumber_ToBase and supporting routines _PyInt_Format and
_PyLong_Format.  In longobject.c, changed long_format to
_PyLong_Format.  In intobject.c, changed uses of PyOS_snprintf to
_PyInt_Format instead.

_PyLong_Format is similar to py3k's routine of the same name, except
it has 2 additional parameters: addL and newstyle.  addL was existing
in long_format, and controls adding the trailing "L".  This is
unneeded in py3k.  newstyle is used to control whether octal prepends
"0" (the pre-2.6 style), or "0o" (the 3.0 sytle).

PyNumber_ToBase is needed for PEP 3127 (Integer Literal Support and
Syntax) and PEP 3101 (Advanced String Formatting).

This changeset does not need merging into py3k.
2008-02-10 01:36:53 +00:00
..
stringlib Made _ParseTupleFinds only defined to unicodeobject.c 2007-11-16 19:16:15 +00:00
abstract.c Added PyNumber_ToBase and supporting routines _PyInt_Format and 2008-02-10 01:36:53 +00:00
boolobject.c Add a bunch of GIL release/acquire points in tp_print implementations and for 2007-09-17 03:28:34 +00:00
bufferobject.c Coverity #151: Remove deadcode. 2007-10-04 06:00:48 +00:00
cellobject.c Issue #1445: Fix a SystemError when accessing the ``cell_contents`` 2007-11-24 13:44:17 +00:00
classobject.c Unified naming convention for free lists and their limits. All free lists 2008-02-06 13:33:44 +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 PEP 3123: Provide forward compatibility with Python 3.0, while keeping 2007-07-21 06:55:02 +00:00
complexobject.c static PyObject* variables should use PyString_InternFromString() instead of PyObject_FromString() to store a python string in a function level static var. 2008-01-28 02:07:53 +00:00
descrobject.c Fix refleak 2007-12-31 23:48:47 +00:00
dictnotes.txt Patch #1397848: add the reasoning behind no-resize-on-shrinkage. 2007-02-15 09:51:35 +00:00
dictobject.c Add -3 warnings that set.copy(), dict.copy(), and defaultdict.copy() will go away in Py3.x 2008-02-09 04:37:49 +00:00
doubledigits.c Backport of r59456:59458 from py3k to trunk 2007-12-10 22:28:56 +00:00
enumobject.c #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available. 2007-12-19 02:37:44 +00:00
exceptions.c #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available. 2007-12-19 02:37:44 +00:00
fileobject.c static PyObject* variables should use PyString_InternFromString() instead of PyObject_FromString() to store a python string in a function level static var. 2008-01-28 02:07:53 +00:00
floatobject.c Patch #1953 2008-02-04 18:00:12 +00:00
frameobject.c Unified naming convention for free lists and their limits. All free lists 2008-02-06 13:33:44 +00:00
funcobject.c #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available. 2007-12-19 02:37:44 +00:00
genobject.c #1473257: add generator.gi_code attribute that refers to 2008-01-26 14:14:20 +00:00
intobject.c Added PyNumber_ToBase and supporting routines _PyInt_Format and 2008-02-10 01:36:53 +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 Use prefix decrement 2008-02-08 00:14:34 +00:00
listsort.txt typo fix 2006-08-01 16:24:30 +00:00
longobject.c Added PyNumber_ToBase and supporting routines _PyInt_Format and 2008-02-10 01:36:53 +00:00
methodobject.c Unified naming convention for free lists and their limits. All free lists 2008-02-06 13:33:44 +00:00
moduleobject.c #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available. 2007-12-19 02:37:44 +00:00
object.c Fix test67.py from issue #1303614. 2008-01-24 17:58:05 +00:00
obmalloc.c PEP 3123: Provide forward compatibility with Python 3.0, while keeping 2007-07-21 06:55:02 +00:00
rangeobject.c Remove unnecessary modulo division. 2008-02-08 22:30:04 +00:00
setobject.c Add -3 warnings that set.copy(), dict.copy(), and defaultdict.copy() will go away in Py3.x 2008-02-09 04:37:49 +00:00
sliceobject.c #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available. 2007-12-19 02:37:44 +00:00
stringobject.c #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available. 2007-12-19 02:37:44 +00:00
structseq.c Temporarily revert 59967 until GC can be added. 2008-01-15 05:39:59 +00:00
tupleobject.c Return ints instead of longs for tuple.count() and tuple.index(). 2008-02-07 02:12:52 +00:00
typeobject.c Added clear cache methods to clear the internal type lookup cache for ref leak test runs. 2008-01-27 23:34:59 +00:00
unicodectype.c Patch 1494554: Update numeric properties to Unicode 4.1. 2006-05-27 08:36:52 +00:00
unicodeobject.c Unified naming convention for free lists and their limits. All free lists 2008-02-06 13:33:44 +00:00
unicodetype_db.h Update Unicode database to Unicode 4.1. 2006-03-09 23:38:20 +00:00
weakrefobject.c #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available. 2007-12-19 02:37:44 +00:00