]>
Commit | Line | Data |
---|---|---|
c8042e10 DM |
1 | /* Implements the unicode (as opposed to string) version of the\r |
2 | built-in formatter for unicode. That is, unicode.__format__(). */\r | |
3 | \r | |
4 | #include "Python.h"\r | |
5 | \r | |
6 | #ifdef Py_USING_UNICODE\r | |
7 | \r | |
8 | #include "../Objects/stringlib/unicodedefs.h"\r | |
9 | \r | |
10 | #define FORMAT_STRING _PyUnicode_FormatAdvanced\r | |
11 | \r | |
12 | /* don't define FORMAT_LONG, FORMAT_FLOAT, and FORMAT_COMPLEX, since\r | |
13 | we can live with only the string versions of those. The builtin\r | |
14 | format() will convert them to unicode. */\r | |
15 | \r | |
16 | #include "../Objects/stringlib/formatter.h"\r | |
17 | \r | |
18 | #endif\r |