Index: Doc/c-api/float.rst =================================================================== --- Doc/c-api/float.rst (revision 75508) +++ Doc/c-api/float.rst (working copy) @@ -92,3 +92,29 @@ be freed. .. versionadded:: 2.6 + + +.. cfunction:: void PyFloat_AsString(char *buf, PyFloatObject *v) + + Convert the argument *v* to a string, using the same rules as + :func:`str`. The length of *buf* should be at least 100. + + This function is unsafe to call because it writes to a buffer whose + length it does not know. + + .. deprecated:: 2.7 + This function will be removed in Python 2.8. Use + :func:`PyObject_Str` instead. + + +.. cfunction:: void PyFloat_AsReprString(char *buf, PyFloatObject *v) + + Same as PyFloat_AsString, except uses the same rules as + :func:`repr`. The length of *buf* should be at least 100. + + This function is unsafe to call because it writes to a buffer whose + length it does not know. + + .. deprecated:: 2.7 + This function will be removed in Python 2.8. Use + :func:`PyObject_Repr` instead.