This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author iritkatriel
Recipients iritkatriel, lukasz.langa, pablogsal
Date 2021-08-17.14:47:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1629211626.67.0.289793547693.issue44874@roundup.psfhosted.org>
In-reply-to
Content
Following discussion on python-dev I added a compile-time deprecation warning.

With this, and after reverting PR27683 I get the warning below. The build succeeds and the tests pass.


% make -s -j2
Objects/frameobject.c:622:5: warning: 'UsingDeprecatedTrashcanMacro' is deprecated [-Wdeprecated-declarations]
    Py_TRASHCAN_SAFE_BEGIN(f)
    ^
./Include/cpython/object.h:545:9: note: expanded from macro 'Py_TRASHCAN_SAFE_BEGIN'
        UsingDeprecatedTrashcanMacro cond=1; \
        ^
./Include/cpython/object.h:542:1: note: 'UsingDeprecatedTrashcanMacro' has been explicitly marked deprecated here
Py_DEPRECATED(3.11) typedef int UsingDeprecatedTrashcanMacro;
^
./Include/pyport.h:509:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                     ^
History
Date User Action Args
2021-08-17 14:47:06iritkatrielsetrecipients: + iritkatriel, lukasz.langa, pablogsal
2021-08-17 14:47:06iritkatrielsetmessageid: <1629211626.67.0.289793547693.issue44874@roundup.psfhosted.org>
2021-08-17 14:47:06iritkatriellinkissue44874 messages
2021-08-17 14:47:06iritkatrielcreate