[New-bugs-announce] [issue7168] Document PyFloat_AsString and PyFloat_AsReprString as deprecated and unsafe

Eric Smith report at bugs.python.org
Mon Oct 19 03:00:00 CEST 2009


New submission from Eric Smith <eric at trueblade.com>:

These functions are unsafe and I'd like to delete them. They've already
been deleted in py3k, per PEP 3100. They are no longer used internally
to the interpreter.

They should be documented as deprecated and as unsafe. They write to a
char* parameter, but don't take a length, so they could overwrite the
passed-in buffer.

There's some argument to be made that we should also document
PyFloat_AsStringEx, which is also deprecated and unsafe. But it is not
in a .h file in 2.4, 2.5, or 2.6, so I'd like to just delete it for 2.7.

----------
assignee: georg.brandl
components: Documentation
messages: 94230
nosy: eric.smith, georg.brandl
priority: normal
severity: normal
status: open
title: Document PyFloat_AsString and PyFloat_AsReprString as deprecated and unsafe
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7168>
_______________________________________


More information about the New-bugs-announce mailing list