aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-11-20 12:16:46 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2016-11-20 12:16:46 +0200
commit460bd0d284caa00eb8ccc9a28836ba30765a19cb (patch)
tree41169cfce0d00587f4222d3237a608b70577adfc /Include/abstract.h
parentIssue #19569: Suggested more appropriate replacements for deprecated Unicode (diff)
downloadcpython-460bd0d284caa00eb8ccc9a28836ba30765a19cb.tar.gz
cpython-460bd0d284caa00eb8ccc9a28836ba30765a19cb.tar.bz2
cpython-460bd0d284caa00eb8ccc9a28836ba30765a19cb.zip
Issue #19569: Compiler warnings are now emitted if use most of deprecated
functions.
Diffstat (limited to 'Include/abstract.h')
-rw-r--r--Include/abstract.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/Include/abstract.h b/Include/abstract.h
index 44107a8a81d..727d1a8f7b4 100644
--- a/Include/abstract.h
+++ b/Include/abstract.h
@@ -549,7 +549,8 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
PyAPI_FUNC(int) PyObject_AsCharBuffer(PyObject *obj,
const char **buffer,
- Py_ssize_t *buffer_len);
+ Py_ssize_t *buffer_len)
+ Py_DEPRECATED(3.0);
/*
Takes an arbitrary object which must support the (character,
@@ -562,7 +563,8 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
an exception set.
*/
- PyAPI_FUNC(int) PyObject_CheckReadBuffer(PyObject *obj);
+ PyAPI_FUNC(int) PyObject_CheckReadBuffer(PyObject *obj)
+ Py_DEPRECATED(3.0);
/*
Checks whether an arbitrary object supports the (character,
@@ -572,7 +574,8 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
PyAPI_FUNC(int) PyObject_AsReadBuffer(PyObject *obj,
const void **buffer,
- Py_ssize_t *buffer_len);
+ Py_ssize_t *buffer_len)
+ Py_DEPRECATED(3.0);
/*
Same as PyObject_AsCharBuffer() except that this API expects
@@ -587,7 +590,8 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
PyAPI_FUNC(int) PyObject_AsWriteBuffer(PyObject *obj,
void **buffer,
- Py_ssize_t *buffer_len);
+ Py_ssize_t *buffer_len)
+ Py_DEPRECATED(3.0);
/*
Takes an arbitrary object which must support the (writable,