[3.10] [doc] Link to deprecation policy PEP from the DeprecationWarning documentation (GH-28123) (#28126)

(cherry picked from commit a7ef15aae8608560bffeeaba412c10e52cab07dd)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
diff --git a/Doc/library/exceptions.rst b/Doc/library/exceptions.rst
index 0e60636..1a883ba 100644
--- a/Doc/library/exceptions.rst
+++ b/Doc/library/exceptions.rst
@@ -748,6 +748,8 @@
    (:pep:`565`). Enabling the :ref:`Python Development Mode <devmode>` shows
    this warning.
 
+   The deprecation policy is described in :pep:`387`.
+
 
 .. exception:: PendingDeprecationWarning
 
@@ -762,6 +764,8 @@
    Ignored by the default warning filters. Enabling the :ref:`Python
    Development Mode <devmode>` shows this warning.
 
+   The deprecation policy is described in :pep:`387`.
+
 
 .. exception:: SyntaxWarning