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" |
Eric Smith | a9f7d62 | 2008-02-17 19:46:49 +0000 | [diff] [blame] | 5 | #include "../Objects/stringlib/unicodedefs.h" |
| 6 | |
Eric Smith | dc13b79 | 2008-05-30 18:10:04 +0000 | [diff] [blame] | 7 | #define FORMAT_STRING _PyUnicode_FormatAdvanced |
| 8 | |
Eric Smith | a9f7d62 | 2008-02-17 19:46:49 +0000 | [diff] [blame] | 9 | /* 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 Smith | dc13b79 | 2008-05-30 18:10:04 +0000 | [diff] [blame] | 12 | |
Eric Smith | a9f7d62 | 2008-02-17 19:46:49 +0000 | [diff] [blame] | 13 | #include "../Objects/stringlib/formatter.h" |