Staging
v0.5.1
https://github.com/python/cpython
Revision 129ab1d8090f54b308b1d4ddaf4fd241ba312a95 authored by Mark Dickinson on 03 May 2009, 22:36:01 UTC, committed by Mark Dickinson on 03 May 2009, 22:36:01 UTC
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72257 | mark.dickinson | 2009-05-03 23:33:34 +0100 (Sun, 03 May 2009) | 2 lines

  Don't use PyOS_strnicmp for NaN and Inf detection: it's locale-aware.
........
1 parent aa77d26
Raw File
Tip revision: 129ab1d8090f54b308b1d4ddaf4fd241ba312a95 authored by Mark Dickinson on 03 May 2009, 22:36:01 UTC
Merged revisions 72257 via svnmerge from
Tip revision: 129ab1d
formatter_unicode.c
/* 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
#define FORMAT_COMPLEX _PyComplex_FormatAdvanced

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