Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed requested changes
  • Loading branch information
Lincoln-developer committed Nov 8, 2024
commit 0d8bd61afcd0fb6942723aedf6a58c3562838279
7 changes: 5 additions & 2 deletions developer-workflow/cpython-deprecation-workflow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ Check prevalence and consider alternatives

Before proposing deprecation:

* **Assess Usage**: Use tools like GitHub search, ``grep``, or ``PyPI statistics`` to determine the extent and context of usage.
* **Assess Usage**: Use tools like GitHub search, `grep`_, or `PyPI statistics`_ to determine the extent and context of usage.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add a link to the GitHub search and list Victor's script: https://hugovk.dev/blog/2022/how-to-search-5000-python-projects/ ?

* **Consider Alternatives**: Ensure there are suitable replacements or upgrades available.

.. _grep: https://www.gnu.org/software/grep/
.. _PyPI statistics: https://pypistats.org/

Open an issue
-------------

Expand All @@ -35,7 +38,7 @@ Once approved:
.. code-block:: python

import warnings
warnings.warn(
warnings._deprecated(
"Feature X is deprecated and will be removed in Python 3.Y",
DeprecationWarning,
stacklevel=2
Expand Down