]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-38374: Remove weakref.ReferenceError from docs (GH-18452)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 11 Feb 2020 07:01:23 +0000 (23:01 -0800)
committerGitHub <noreply@github.com>
Tue, 11 Feb 2020 07:01:23 +0000 (23:01 -0800)
Reflecting changes to the code, removed weakref.ReferenceError from weakref.rst and exceptions.rst.

Issue submitter provided evidence that the `weakref.ReferenceError` alias for `ReferenceError` was removed from the code in 2007.  Working with @gvanrossum at PyCascades CPython sprint we looked at the code and confirmed that `weakref.ReferenceError` was no longer in `weakref.py`.

Based on that analysis I removed references `weakref.ReferenceError` from the two documents where it was still being referenced: `weakref.rst` and `exceptions.rst`.

https://bugs.python.org/issue38374
(cherry picked from commit 4eb9f4313cfaea6a9611221024a1c54f5662cc37)

Co-authored-by: Roger Hurwitz <rogerhurwitz@gmail.com>
Doc/c-api/exceptions.rst
Doc/library/weakref.rst

index a53c49a211036b2f1f54150ccf81e0de680bcec7..2f58149c6cd1425b0cd1342436271f17a03ad089 100644 (file)
@@ -968,9 +968,6 @@ Notes:
    This is a base class for other standard exceptions.
 
 (2)
-   This is the same as :exc:`weakref.ReferenceError`.
-
-(3)
    Only defined on Windows; protect code that uses this by testing that the
    preprocessor macro ``MS_WINDOWS`` is defined.
 
index 8d8a0b5df2687f7078eb634376c10b34cd6e9d5d..93efcef1501b4ad9dfb6173f0ee17fcf392b1ced 100644 (file)
@@ -323,12 +323,6 @@ objects.
    types.
 
 
-.. exception:: ReferenceError
-
-   Exception raised when a proxy object is used but the underlying object has been
-   collected.  This is the same as the standard :exc:`ReferenceError` exception.
-
-
 .. seealso::
 
    :pep:`205` - Weak References