Implement Py_DEPRECATED() macro for Visual Studio #77588
Copy link
Copy link
Closed
Labels
Description
| BPO | 33407 |
|---|---|
| Nosy | @pfmoore, @pitrou, @vstinner, @tjguk, @zware, @zooba, @ZackerySpytz |
| PRs |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee = None
closed_at = <Date 2019-05-28.15:19:44.920>
created_at = <Date 2018-05-02.09:29:49.384>
labels = ['3.8', 'OS-windows']
title = 'Implement Py_DEPRECATED() macro for Visual Studio'
updated_at = <Date 2019-05-28.15:19:44.919>
user = 'https://github.com/vstinner'bugs.python.org fields:
activity = <Date 2019-05-28.15:19:44.919>
actor = 'vstinner'
assignee = 'none'
closed = True
closed_date = <Date 2019-05-28.15:19:44.920>
closer = 'vstinner'
components = ['Windows']
creation = <Date 2018-05-02.09:29:49.384>
creator = 'vstinner'
dependencies = []
files = []
hgrepos = []
issue_num = 33407
keywords = ['patch']
message_count = 5.0
messages = ['316059', '316060', '316061', '343789', '343790']
nosy_count = 7.0
nosy_names = ['paul.moore', 'pitrou', 'vstinner', 'tim.golden', 'zach.ware', 'steve.dower', 'ZackerySpytz']
pr_nums = ['8980']
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue33407'
versions = ['Python 3.8']Reactions are currently unavailable
Activity
vstinner commentedon May 2, 2018
According to the following links, it would be possible to implement the Pc_DEPRECATED() macro for Visual Studio:
https://mail.python.org/pipermail/python-dev/2018-May/153299.html
https://stackoverflow.com/questions/295120/c-mark-as-deprecated/295229#295229
Moreover, is Py_DEPRECATED() defined on clang which also supports the deprecated function attribute?
https://clang.llvm.org/docs/AttributeReference.html#deprecated-gnu-deprecated
Current Include/pyport.h code:
vstinner commentedon May 2, 2018
Oh, bpo-19569 is still open, for Visual Studio see:
https://bugs.python.org/issue19569#msg227727
pitrou commentedon May 2, 2018
In Arrow we use the following:
vstinner commentedon May 28, 2019
New changeset 3c8724f by Victor Stinner (Zackery Spytz) in branch 'master':
bpo-33407: Implement Py_DEPRECATED() on MSVC (GH-8980)
3c8724f
vstinner commentedon May 28, 2019
Thanks Zackery Spytz for the fix!