blob: 4f2e53fe92afd9dfc8f008d0093380ced174af52 [file] [log] [blame]
Eric Smitha9f7d622008-02-17 19:46:49 +00001/* Implements the unicode (as opposed to string) version of the
2 built-in formatter for unicode. That is, unicode.__format__(). */
3
4#include "Python.h"
Eric Smitha9f7d622008-02-17 19:46:49 +00005#include "../Objects/stringlib/unicodedefs.h"
6
Eric Smithdc13b792008-05-30 18:10:04 +00007#define FORMAT_STRING _PyUnicode_FormatAdvanced
8
Eric Smitha9f7d622008-02-17 19:46:49 +00009/* don't define FORMAT_LONG and FORMAT_FLOAT, since we can live
10 with only the string versions of those. The builtin format()
11 will convert them to unicode. */
Eric Smithdc13b792008-05-30 18:10:04 +000012
Eric Smitha9f7d622008-02-17 19:46:49 +000013#include "../Objects/stringlib/formatter.h"