[Python-checkins] r71962 - python/trunk/Doc/c-api/conversion.rst

eric.smith python-checkins at python.org
Sun Apr 26 12:05:11 CEST 2009


Author: eric.smith
Date: Sun Apr 26 12:05:11 2009
New Revision: 71962
Log:
Note that the caller is resposible for freeing the result of PyOS_double_to_string.
Modified:
 python/trunk/Doc/c-api/conversion.rst
Modified: python/trunk/Doc/c-api/conversion.rst
==============================================================================
--- python/trunk/Doc/c-api/conversion.rst	(original)
+++ python/trunk/Doc/c-api/conversion.rst	Sun Apr 26 12:05:11 2009
@@ -109,7 +109,8 @@
 *val* is a finite number, an infinite number, or not a number, respectively.
 
 The return value is a pointer to *buffer* with the converted string or
- *NULL* if the conversion failed.
+ *NULL* if the conversion failed. The caller is responsible for freeing the
+ returned string by calling :cfunc:`PyMem_Free`.
 
 .. versionadded:: 2.7
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /