Staging
v0.5.1
https://github.com/python/cpython
Revision 934f4e1f398bb0dd712f40ecf7957327bdae33f8 authored by Ronald Oussoren on 22 June 2010, 09:18:28 UTC, committed by Ronald Oussoren on 22 June 2010, 09:18:28 UTC
* Don't import 'ic' in webbrowser, that module is no longer used
* Remove 'MacOS' from the list of modules that should emit a Py3kWarning on import.
  This is needed because one of the earlier tests triggers and import of this
  extension, and that causes a failure in test_py3kwarn (running test_py3kwarn
  separately worked fine)

With these changes 'make tests' no longer says that test_py3kwarn fails.
1 parent 4f61259
Raw File
Tip revision: 934f4e1f398bb0dd712f40ecf7957327bdae33f8 authored by Ronald Oussoren on 22 June 2010, 09:18:28 UTC
Fix for issue8446:
Tip revision: 934f4e1
formatter_string.c
/***********************************************************************/
/* Implements the string (as opposed to unicode) version of the
   built-in formatters for string, int, float.  That is, the versions
   of int.__format__, etc., that take and return string objects */

#include "Python.h"
#include "../Objects/stringlib/stringdefs.h"

#define FORMAT_STRING  _PyBytes_FormatAdvanced
#define FORMAT_LONG    _PyLong_FormatAdvanced
#define FORMAT_INT     _PyInt_FormatAdvanced
#define FORMAT_FLOAT   _PyFloat_FormatAdvanced
#ifndef WITHOUT_COMPLEX
#define FORMAT_COMPLEX _PyComplex_FormatAdvanced
#endif

#include "../Objects/stringlib/formatter.h"
back to top