summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2009-04-30 01:00:33 (GMT)
committerEric Smith <eric@trueblade.com>2009-04-30 01:00:33 (GMT)
commit58a42244cfefc96b7adada5344b231ff2f32a86a (patch)
treea2a90372b3bef2cc1c06bb9f07b880f2c3997731 /Python
parent738a41dd85f55f49508be62a135f9e65b5c92255 (diff)
downloadcpython-58a42244cfefc96b7adada5344b231ff2f32a86a.zip
cpython-58a42244cfefc96b7adada5344b231ff2f32a86a.tar.gz
cpython-58a42244cfefc96b7adada5344b231ff2f32a86a.tar.bz2
Issue #1588: Add complex.__format__.
Diffstat (limited to 'Python')
-rw-r--r--Python/formatter_unicode.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c
index 206b640..c350907 100644
--- a/Python/formatter_unicode.c
+++ b/Python/formatter_unicode.c
@@ -6,8 +6,9 @@
#include "../Objects/stringlib/unicodedefs.h"
-#define FORMAT_STRING _PyUnicode_FormatAdvanced
-#define FORMAT_LONG _PyLong_FormatAdvanced
-#define FORMAT_FLOAT _PyFloat_FormatAdvanced
+#define FORMAT_STRING _PyUnicode_FormatAdvanced
+#define FORMAT_LONG _PyLong_FormatAdvanced
+#define FORMAT_FLOAT _PyFloat_FormatAdvanced
+#define FORMAT_COMPLEX _PyComplex_FormatAdvanced
#include "../Objects/stringlib/formatter.h"