view Python/formatter_unicode.c @ 52949:31582485fbfc

Revert removal of atof.c and strtod.c in r71341. We're not quite ready for this yet---this removal should happen as part of the py3k-short-float-repr merge.
author Mark Dickinson <dickinsm@gmail.com>
date Tue, 07 Apr 2009 11:53:52 +0000
parents 0da27fdf0192
children 2cde0d003ffc
line wrap: on
line source

/* implements the unicode (as opposed to string) version of the
   built-in formatters for string, int, float.  that is, the versions
   of int.__float__, etc., that take and return unicode objects */

#include "Python.h"
#include "../Objects/stringlib/unicodedefs.h"


#define FORMAT_STRING _PyUnicode_FormatAdvanced
#define FORMAT_LONG   _PyLong_FormatAdvanced
#define FORMAT_FLOAT  _PyFloat_FormatAdvanced

#include "../Objects/stringlib/formatter.h"