[issue37588] Py_DEPRECATED and unavoidable warnings

Inada Naoki report at bugs.python.org
Fri Jul 19 09:26:04 EDT 2019


Inada Naoki <songofacandy at gmail.com> added the comment:

2019年7月19日(金) 22:00 Phil Thompson <report at bugs.python.org>:

>
> If I fail to protect against using a feature when it is no longer
> present then it's a bug in my code and it won't compile. Providing a
> deprecation warning gives me some notice that my code needs to be
> changed. That is helpful but not strictly necessary as I will soon find
> out when testing against the new version. There is nothing "dangerous"
> here.
>

You are proposing to change Python, so it's not only your option.  It may
be safe for you, but may be not safe for all authors who creating extension
and share it on PyPI.

If it's only your problem, you can manually suppress the warning, like you
manually enabled missing initializer warning.  No need to add an option to
CPython.

>

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37588>
_______________________________________


More information about the Python-bugs-list mailing list