summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2009-04-25 21:40:15 (GMT)
committerEric Smith <eric@trueblade.com>2009-04-25 21:40:15 (GMT)
commit068f06568be288b8628a4e24118503e4d9b7af1b (patch)
treee1d01c08ed08489c994e7cbf167fd703c7f2c64e /Include
parentdfcffd40447de8e04376f8946fb71a9c16151563 (diff)
downloadcpython-068f06568be288b8628a4e24118503e4d9b7af1b.zip
cpython-068f06568be288b8628a4e24118503e4d9b7af1b.tar.gz
cpython-068f06568be288b8628a4e24118503e4d9b7af1b.tar.bz2
Issue #5835, deprecate PyOS_ascii_formatd.
If anyone wants to clean up the documentation, feel free. It's my first documentation foray, and it's not that great. Will port to py3k with a different strategy.
Diffstat (limited to 'Include')
-rw-r--r--Include/pystrtod.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/Include/pystrtod.h b/Include/pystrtod.h
index 1caa7ae..106448b 100644
--- a/Include/pystrtod.h
+++ b/Include/pystrtod.h
@@ -8,7 +8,17 @@ extern "C" {
PyAPI_FUNC(double) PyOS_ascii_strtod(const char *str, char **ptr);
PyAPI_FUNC(double) PyOS_ascii_atof(const char *str);
-PyAPI_FUNC(char *) PyOS_ascii_formatd(char *buffer, size_t buf_len, const char *format, double d);
+
+/* Deprecated in 2.7 and 3.1. Will disappear in 2.8 (if it exists) and 3.2 */
+PyAPI_FUNC(char *) PyOS_ascii_formatd(char *buffer, size_t buf_len,
+ const char *format, double d);
+
+/* Use PyOS_double_to_string instead. It's the same, except it allocates
+ the appropriately sized buffer and returns it. This function will go
+ away in Python 2.8 and 3.2. */
+PyAPI_FUNC(void) _PyOS_double_to_string(char *buf, size_t buf_len, double val,
+ char format_code, int precision,
+ int flags, int* type);
/* The caller is responsible for calling PyMem_Free to free the buffer
that's is returned. */