mirror of
https://github.com/python/cpython.git
synced 2025-11-27 05:44:16 +00:00
CObject use is marked as a Py3k warning, not a deprecation warning
This commit is contained in:
parent
db31a35aa9
commit
33c722b795
2 changed files with 4 additions and 2 deletions
|
|
@ -25,6 +25,9 @@ Core and Builtins
|
||||||
- Issue #9862: Compensate for broken PIPE_BUF in AIX by hard coding
|
- Issue #9862: Compensate for broken PIPE_BUF in AIX by hard coding
|
||||||
its value as the default 512 when compiling on AIX.
|
its value as the default 512 when compiling on AIX.
|
||||||
|
|
||||||
|
- Issue #9675: CObject use is marked as a Py3k warning, not a deprecation
|
||||||
|
warning.
|
||||||
|
|
||||||
- Issue #10068: Global objects which have reference cycles with their module's
|
- Issue #10068: Global objects which have reference cycles with their module's
|
||||||
dict are now cleared again. This causes issue #7140 to appear again.
|
dict are now cleared again. This causes issue #7140 to appear again.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,7 @@ typedef void (*destructor2)(void *, void*);
|
||||||
|
|
||||||
static int cobject_deprecation_warning(void)
|
static int cobject_deprecation_warning(void)
|
||||||
{
|
{
|
||||||
return PyErr_WarnEx(PyExc_PendingDeprecationWarning,
|
return PyErr_WarnPy3k("CObject type is not supported in 3.x. "
|
||||||
"The CObject type is marked Pending Deprecation in Python 2.7. "
|
|
||||||
"Please use capsule objects instead.", 1);
|
"Please use capsule objects instead.", 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue