mirror of
				https://github.com/python/cpython.git
				synced 2025-11-01 06:01:29 +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
	
	 Eric Smith
						Eric Smith