Document API changes. Drop plan to have a version that
still includes types.
This commit is contained in:
parent
abc77f119e
commit
25029d54f2
18
pep-0384.txt
18
pep-0384.txt
|
@ -245,6 +245,16 @@ In addition, the following macros are available:
|
|||
- 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 @@ Implementation Strategy
|
|||
=======================
|
||||
|
||||
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
|
||||
=========
|
||||
|
|
Loading…
Reference in New Issue