]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-38374: Remove weakref.ReferenceError from docs (GH-18452)
authorRoger Hurwitz <rogerhurwitz@gmail.com>
Tue, 11 Feb 2020 06:56:02 +0000 (22:56 -0800)
committerGitHub <noreply@github.com>
Tue, 11 Feb 2020 06:56:02 +0000 (22:56 -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

Doc/c-api/exceptions.rst
Doc/library/weakref.rst

index 2edcbf788d2adebc09eca2eb80004a64c43bf91a..b7175166a6f009f94b42ae7b5f1ee8266c23ac72 100644 (file)
@@ -983,9 +983,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 c3519e45beb6b1f60a607e2dfa7c1c5892d62953..8636e76c52a420e89536ab3d7793e6d73a753496 100644 (file)
@@ -327,12 +327,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