mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
Refactor and clean up str.format() code (and helpers) in advance of optimizations.
This commit is contained in:
parent
eb2c964aeb
commit
4a7d76ddb5
10 changed files with 98 additions and 99 deletions
|
@ -3,11 +3,11 @@
|
|||
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__
|
||||
|
||||
#define FORMAT_STRING _PyUnicode_FormatAdvanced
|
||||
#define FORMAT_LONG _PyLong_FormatAdvanced
|
||||
#define FORMAT_FLOAT _PyFloat_FormatAdvanced
|
||||
|
||||
#include "../Objects/stringlib/formatter.h"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue