/Python/formatter_unicode.c

http://unladen-swallow.googlecode.com/ · C · 13 lines · 4 code · 4 blank · 5 comment · 0 complexity · 168eb50e5b5c85afd45e5132a71ebf7e MD5 · raw file

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