Eric Smith | a9f7d62 | 2008-02-17 19:46:49 +0000 | [diff] [blame] | 1 | /* 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" |
Benjamin Peterson | 78821dd | 2009-01-25 17:15:10 +0000 | [diff] [blame] | 5 | |
| 6 | #ifdef Py_USING_UNICODE |
| 7 | |
Eric Smith | a9f7d62 | 2008-02-17 19:46:49 +0000 | [diff] [blame] | 8 | #include "../Objects/stringlib/unicodedefs.h" |
| 9 | |
Eric Smith | dc13b79 | 2008-05-30 18:10:04 +0000 | [diff] [blame] | 10 | #define FORMAT_STRING _PyUnicode_FormatAdvanced |
| 11 | |
Eric Smith | 9139cc6 | 2009-04-30 00:58:58 +0000 | [diff] [blame] | 12 | /* don't define FORMAT_LONG, FORMAT_FLOAT, and FORMAT_COMPLEX, since |
| 13 | we can live with only the string versions of those. The builtin |
| 14 | format() will convert them to unicode. */ |
Eric Smith | dc13b79 | 2008-05-30 18:10:04 +0000 | [diff] [blame] | 15 | |
Eric Smith | a9f7d62 | 2008-02-17 19:46:49 +0000 | [diff] [blame] | 16 | #include "../Objects/stringlib/formatter.h" |
Benjamin Peterson | 78821dd | 2009-01-25 17:15:10 +0000 | [diff] [blame] | 17 | |
| 18 | #endif |