bpo-38374: Remove weakref.ReferenceError from docs (GH-18452)

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 4eb9f4313c)

Co-authored-by: Roger Hurwitz <rogerhurwitz@gmail.com>
This commit is contained in:
Miss Islington (bot) 2020-02-10 23:02:01 -08:00 committed by GitHub
parent c372f9b9e7
commit 3f8d181446
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 9 deletions

View File

@ -971,9 +971,6 @@ Notes:
This is a base class for other standard exceptions. This is a base class for other standard exceptions.
(2) (2)
This is the same as :exc:`weakref.ReferenceError`.
(3)
Only defined on Windows; protect code that uses this by testing that the Only defined on Windows; protect code that uses this by testing that the
preprocessor macro ``MS_WINDOWS`` is defined. preprocessor macro ``MS_WINDOWS`` is defined.

View File

@ -327,12 +327,6 @@ objects.
types. 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:: .. seealso::
:pep:`205` - Weak References :pep:`205` - Weak References