Staging
v0.5.1
https://github.com/python/cpython
Revision 34bfda55d23e90a085be95622263aa1f32bc5c27 authored by Vinay Sajip on 01 September 2008, 15:08:07 UTC, committed by Vinay Sajip on 01 September 2008, 15:08:07 UTC
1 parent 35e3b03
Raw File
Tip revision: 34bfda55d23e90a085be95622263aa1f32bc5c27 authored by Vinay Sajip on 01 September 2008, 15:08:07 UTC
Added section about configuring logging in a library. Thanks to Thomas Heller for the idea.
Tip revision: 34bfda5
formatter_unicode.c
/* Implements the unicode (as opposed to string) version of the
   built-in formatter for unicode.  That is, unicode.__format__(). */

#include "Python.h"
#include "../Objects/stringlib/unicodedefs.h"

#define FORMAT_STRING _PyUnicode_FormatAdvanced

/* don't define FORMAT_LONG and FORMAT_FLOAT, since we can live
   with only the string versions of those.  The builtin format()
   will convert them to unicode. */

#include "../Objects/stringlib/formatter.h"
back to top