~pythonregexp2.7/python/issue2636-01

« back to all changes in this revision

Viewing changes to Python/formatter_unicode.c

  • Committer: Jeffrey C. "The TimeHorse" Jacobs
  • Date: 2008-06-09 14:37:21 UTC
  • mfrom: (39022.1.14 Regexp-2.6)
  • Revision ID: darklord@timehorse.com-20080609143721-bj0g1mwta28038da
Merged in changes from the core Regexp branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
   built-in formatter for unicode.  That is, unicode.__format__(). */
3
3
 
4
4
#include "Python.h"
5
 
#include "formatter_unicode.h"
6
 
 
7
5
#include "../Objects/stringlib/unicodedefs.h"
8
6
 
9
 
#define FORMAT_STRING unicode__format__
 
7
#define FORMAT_STRING _PyUnicode_FormatAdvanced
 
8
 
10
9
/* don't define FORMAT_LONG and FORMAT_FLOAT, since we can live
11
10
   with only the string versions of those.  The builtin format()
12
11
   will convert them to unicode. */
 
12
 
13
13
#include "../Objects/stringlib/formatter.h"