Mercurial > cpython-lru_cache-weakref
view Python/formatter_unicode.c @ 43848:e162e881ea5f
Moved the initalization of the exception before the initialization of sys.
On Windows _PySys_Init() could raise an uninitialized exception which leads to a seg fault.
| author | Christian Heimes <christian@cheimes.de> |
|---|---|
| date | Wed, 14 Nov 2007 00:16:07 +0000 |
| parents | 5355337709e1 |
| children | 0da27fdf0192 |
line wrap: on
line source
/* implements the unicode (as opposed to string) version of the built-in formatters for string, int, float. that is, the versions of int.__float__, etc., that take and return unicode objects */ #include "Python.h" #include "formatter_unicode.h" #include "../Objects/stringlib/unicodedefs.h" #define FORMAT_STRING unicode_unicode__format__ #define FORMAT_LONG unicode_long__format__ #define FORMAT_FLOAT unicode_float__format__ #include "../Objects/stringlib/formatter.h"
