Staging
v0.5.1
https://github.com/python/cpython
Revision fc521498bbaf92c2920cca026ca69424298bd9d7 authored by Ezio Melotti on 02 August 2010, 20:52:47 UTC, committed by Ezio Melotti on 02 August 2010, 20:52:47 UTC
1 parent 5ee50bb
Raw File
Tip revision: fc521498bbaf92c2920cca026ca69424298bd9d7 authored by Ezio Melotti on 02 August 2010, 20:52:47 UTC
Fix test_bool. operator.isCallable() doesn't raise a warning on 2.6.
Tip revision: fc52149
formatter_string.c
/***********************************************************************/
/* Implements the string (as opposed to unicode) version of the
   built-in formatters for string, int, float.  That is, the versions
   of int.__float__, etc., that take and return string objects */

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

#define FORMAT_STRING _PyBytes_FormatAdvanced
#define FORMAT_LONG   _PyLong_FormatAdvanced
#define FORMAT_INT    _PyInt_FormatAdvanced
#define FORMAT_FLOAT  _PyFloat_FormatAdvanced

#include "../Objects/stringlib/formatter.h"
back to top