cpython/Include
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
..
Python-ast.h
Python.h Issue #2396: backport the memoryview object. 2009-04-02 21:18:34 +00:00
abstract.h Issue 1242657: list(obj) can swallow KeyboardInterrupt. 2009-02-02 21:50:13 +00:00
asdl.h
ast.h
bitset.h
boolobject.h
bufferobject.h
bytearrayobject.h Make the _H #define's match the header file names. Fix comments to 2008-06-01 22:57:47 +00:00
bytes_methods.h
bytesobject.h remove some PyBytes_* aliases that are not in 3.x 2009-02-16 21:09:09 +00:00
cStringIO.h
cellobject.h
ceval.h
classobject.h
cobject.h #3668: When PyArg_ParseTuple correctly parses a s* format, but raises an 2008-08-29 18:39:48 +00:00
code.h
codecs.h
compile.h move unprefixed error into .c file 2008-10-30 23:59:18 +00:00
complexobject.h I finally got the time to update and merge Mark's and my trunk-math branch. The patch is collaborated work of Mark Dickinson and me. It was mostly done a few months ago. The patch fixes a lot of loose ends and edge cases related to operations with NaN, INF, very small values and complex math. 2008-04-18 23:13:07 +00:00
datetime.h
descrobject.h many more types to initialize (I had to expose some of them) 2009-04-18 22:15:26 +00:00
dictobject.h Issue #4688: Add a heuristic so that tuples and dicts containing only 2009-03-23 18:41:45 +00:00
enumobject.h
errcode.h
eval.h
fileobject.h Issue #5204: Define _PyVerify_fd on VC6 to make 2009-02-11 04:13:06 +00:00
floatobject.h - Issue #2862: Make int and float freelist management consistent with other 2008-07-06 03:35:58 +00:00
frameobject.h
funcobject.h
genobject.h
graminit.h
grammar.h
import.h Fix two issues introduced by issue #71031 by changing the signature of 2009-04-02 03:34:53 +00:00
intobject.h - Issue #2862: Make int and float freelist management consistent with other 2008-07-06 03:35:58 +00:00
intrcheck.h
iterobject.h
listobject.h
longintrepr.h Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms. 2009-03-20 15:51:55 +00:00
longobject.h Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms. 2009-03-20 15:51:55 +00:00
marshal.h
memoryobject.h Issue #2396: backport the memoryview object. 2009-04-02 21:18:34 +00:00
metagrammar.h
methodobject.h
modsupport.h
moduleobject.h
node.h
object.h Issue #1113244: Py_XINCREF, Py_DECREF, Py_XDECREF: Add `do { ... } while (0)' 2009-04-05 21:19:13 +00:00
objimpl.h Issue #4688: Add a heuristic so that tuples and dicts containing only 2009-03-23 18:41:45 +00:00
opcode.h Backport r69961 to trunk, replacing JUMP_IF_{TRUE,FALSE} with 2009-02-28 19:03:21 +00:00
osdefs.h
parsetok.h
patchlevel.h Bump to 2.7a0 2008-10-02 03:33:51 +00:00
pgen.h
pgenheaders.h
py_curses.h This reverts r63675 based on the discussion in this thread: 2008-06-09 04:58:54 +00:00
pyarena.h
pydebug.h Implemented PEP 370 2008-05-06 22:41:46 +00:00
pyerrors.h This reverts r63675 based on the discussion in this thread: 2008-06-09 04:58:54 +00:00
pyexpat.h
pyfpe.h
pygetopt.h
pymacconfig.h Fix for issue5657. 2009-04-19 10:38:20 +00:00
pymactoolbox.h MacOS X: Enable 4-way universal builds 2008-06-05 12:58:24 +00:00
pymath.h Backport r71704 (add configure check for C99 round function) to trunk. 2009-04-18 14:41:37 +00:00
pymem.h Issue #2620: Overflow checking when allocating or reallocating memory 2008-07-22 04:46:32 +00:00
pyport.h Rewrite Py_ARITHMETIC_RIGHT_SHIFT so that it's valid for all signed 2009-03-20 23:16:14 +00:00
pystate.h
pystrcmp.h build_os2emx.patch in issue 3868 - update OS/2 EMX makefile and config files 2008-09-22 14:23:45 +00:00
pystrtod.h Backport of some of the work in r71665 to trunk. This reworks much of 2009-04-22 13:29:05 +00:00
pythonrun.h Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms. 2009-03-20 15:51:55 +00:00
pythread.h #1683 prevent forking from interfering in threading storage 2008-06-13 00:09:47 +00:00
rangeobject.h
setobject.h
sliceobject.h many more types to initialize (I had to expose some of them) 2009-04-18 22:15:26 +00:00
stringobject.h Backport of some of the work in r71665 to trunk. This reworks much of 2009-04-22 13:29:05 +00:00
structmember.h
structseq.h
symtable.h fix compile errors 2008-08-17 01:27:30 +00:00
sysmodule.h
timefuncs.h
token.h
traceback.h #3342: In tracebacks, printed source lines were not indented since r62555. 2008-07-11 21:45:06 +00:00
tupleobject.h Issue #4688: Add a heuristic so that tuples and dicts containing only 2009-03-23 18:41:45 +00:00
ucnhash.h
unicodeobject.h Fix #4846 (Py_UNICODE_ISSPACE causes linker error) by moving the declaration 2009-01-05 19:43:35 +00:00
warnings.h wrap line 2008-05-26 19:37:11 +00:00
weakrefobject.h