cpython/Objects
Eric Smith aca19e6a74 Backport of some of the work in r71665 to trunk. This reworks much of
int, long, and float __format__(), and it keeps their implementation
in sync with py3k.

Also added PyOS_double_to_string. This is the "fallback" version
that's also available in trunk, and should be kept in sync with that
code. I'll add an issue to document PyOS_double_to_string in the C
API.

There are many internal cleanups. Externally visible changes include:

- Implement PEP 378, Format Specifier for Thousands Separator, for
  floats, ints, and longs.

- Issue #5515: 'n' formatting for ints, longs, and floats handles
  leading zero formatting poorly.

- Issue #5772: For float.__format__, don't add a trailing ".0" if
  we're using no type code and we have an exponent.
2009-04-22 13:29:05 +00:00
..
stringlib Backport of some of the work in r71665 to trunk. This reworks much of 2009-04-22 13:29:05 +00:00
abstract.c "not subscriptable" should be a bit more understandable than "unsubscriptable". 2009-04-18 08:26:21 +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 rename internal bytes_ functions to bytearray 2009-04-18 15:31:34 +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 generate py3k warnings on __getslice__, __delslice__, and __setslice__ 2008-08-24 18:10:20 +00:00
cobject.c #3668: When PyArg_ParseTuple correctly parses a s* format, but raises an 2008-08-29 18:39:48 +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 many more types to initialize (I had to expose some of them) 2009-04-18 22:15:26 +00:00
dictnotes.txt Patch #1397848: add the reasoning behind no-resize-on-shrinkage. 2007-02-15 09:51:35 +00:00
dictobject.c The tracking statistics were actually too pessimistic 2009-03-23 19:17:00 +00:00
enumobject.c Convert from long to Py_ssize_t. 2008-07-24 07:04:55 +00:00
exceptions.c Issue 4804. Add a function to test the validity of file descriptors on Windows, and stop using global runtime settings to silence the warnings / assertions. 2009-02-10 13:32:24 +00:00
fileobject.c issue 4804: Provide checks for the format string of strftime, and for the "mode" string of fopen on Windows. These strings are user provided from python and so we can avoid invoking the C runtime invalid parameter handler by first checking that they are valid. 2009-02-04 10:05:25 +00:00
floatobject.c call __float__ on str subclasses #5759 2009-04-15 21:26:36 +00:00
frameobject.c try to initalize all builtin types with PyType_Ready to avoid problems like #5787 2009-04-18 20:12:47 +00:00
funcobject.c This reverts r63675 based on the discussion in this thread: 2008-06-09 04:58:54 +00:00
genobject.c Fix a wrong struct field assignment (docstring as closure). 2009-03-31 01:25:15 +00:00
intobject.c Issue #3166: Make long -> float (and int -> float) conversions 2009-04-20 21:13:33 +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 1242657: list(obj) can swallow KeyboardInterrupt. 2009-02-02 21:50:13 +00:00
listsort.txt Issue #5341: Fix a variety of spelling errors. 2009-02-21 20:27:01 +00:00
longobject.c Issue #3166: Make long -> float (and int -> float) conversions 2009-04-20 21:13:33 +00:00
memoryobject.c Issue #2396: backport the memoryview object. 2009-04-02 21:18:34 +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 make errors consistent 2009-04-19 02:40:43 +00:00
obmalloc.c Bug #3951: Py_USING_MEMORY_DEBUGGER should not be enabled by default. 2008-09-25 04:12:50 +00:00
rangeobject.c Added better pickling support to xrange objects. 2008-06-10 04:01:23 +00:00
setobject.c Issue #3680: Reference cycles created through a dict, set or deque iterator did not get collected. 2009-01-01 14:11:22 +00:00
sliceobject.c many more types to initialize (I had to expose some of them) 2009-04-18 22:15:26 +00:00
stringobject.c Issue #532631: Add paranoid check to avoid potential buffer overflow 2009-03-29 16:17:16 +00:00
structseq.c Fix: 2008-08-24 05:04:52 +00:00
tupleobject.c The tracking statistics were actually too pessimistic 2009-03-23 19:17:00 +00:00
typeobject.c Issue #2396: backport the memoryview object. 2009-04-02 21:18:34 +00:00
unicodectype.c Issue #3811: The Unicode database was updated to 5.1. 2008-09-10 13:38:12 +00:00
unicodeobject.c Issue #532631: Apply floatformat changes to unicodeobject.c 2009-03-29 16:24:29 +00:00
unicodetype_db.h Issue #3811: The Unicode database was updated to 5.1. 2008-09-10 13:38:12 +00:00
weakrefobject.c Fix #3634 invalid return value from _weakref.ref(Exception).__init__ 2008-09-09 20:55:01 +00:00