[Python-checkins] r85974 - peps/trunk/pep-0384.txt

martin.v.loewis python-checkins at python.org
Sat Oct 30 13:11:24 CEST 2010


Author: martin.v.loewis
Date: Sat Oct 30 13:11:24 2010
New Revision: 85974

Log:
Document API changes. Drop plan to have a version that
still includes types.


Modified:
   peps/trunk/pep-0384.txt

Modified: peps/trunk/pep-0384.txt
==============================================================================
--- peps/trunk/pep-0384.txt	(original)
+++ peps/trunk/pep-0384.txt	Sat Oct 30 13:11:24 2010
@@ -245,6 +245,16 @@
 - Py_BEGIN_ALLOW_THREADS, Py_BLOCK_THREADS, Py_UNBLOCK_THREADS,
   Py_END_ALLOW_THREADS
 
+Signature Changes
+-----------------
+
+A number of functions currently expect a specific struct, even though
+callers typically have PyObject* available. These have been changed
+to expect PyObject* as the parameter; this will cause warnings in
+applications that currently explicitly cast to the parameter type.
+These functions are PySlice_GetIndices, PySlice_GetIndicesEx,
+PyUnicode_AsWideChar, and PyEval_EvalCode.
+
 Linkage
 -------
 
@@ -272,11 +282,9 @@
 =======================
 
 This PEP will be implemented in a branch, allowing users to check
-whether their modules conform to the ABI. To simplify this testing, an
-additional macro Py_LIMITED_API_WITH_TYPES will expose the existing
-type object layout, to let users postpone rewriting all types. When
-the this branch is merged into the 3.2 code base, this macro will
-be removed.
+whether their modules conform to the ABI. To avoid users having to
+rewrite their type definitions, a script to convert C source code
+containing type definitions will be provided.
 
 Copyright
 =========


More information about the Python-checkins mailing list