mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	 8c66326368
			
		
	
	
		8c66326368
		
	
	
	
	
		
			
			Known issues: The string.Formatter class, as discussed in the PEP, is incomplete. Error handling needs to conform to the PEP. Need to fix this warning that I introduced in Python/formatter_unicode.c: Objects/stringlib/unicodedefs.h:26: warning: `STRINGLIB_CMP' defined but not used Need to make sure sign formatting is correct, more tests needed. Need to remove '()' sign formatting, left over from an earlier version of the PEP.
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			484 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			484 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* 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"
 |