diff options
author | Roger Hurwitz <rogerhurwitz@gmail.com> | 2020-02-11 06:56:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-11 06:56:02 (GMT) |
commit | 4eb9f4313cfaea6a9611221024a1c54f5662cc37 (patch) | |
tree | f9afcab3cd685ec312db18792ff6f8e5f49d8140 /Doc | |
parent | 96ce22706735779cf8cc46eaaa5ac61359364b5a (diff) | |
download | cpython-4eb9f4313cfaea6a9611221024a1c54f5662cc37.zip cpython-4eb9f4313cfaea6a9611221024a1c54f5662cc37.tar.gz cpython-4eb9f4313cfaea6a9611221024a1c54f5662cc37.tar.bz2 |
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
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/c-api/exceptions.rst | 3 | ||||
-rw-r--r-- | Doc/library/weakref.rst | 6 |
2 files changed, 0 insertions, 9 deletions
diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst index 2edcbf7..b717516 100644 --- a/Doc/c-api/exceptions.rst +++ b/Doc/c-api/exceptions.rst @@ -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. diff --git a/Doc/library/weakref.rst b/Doc/library/weakref.rst index c3519e4..8636e76 100644 --- a/Doc/library/weakref.rst +++ b/Doc/library/weakref.rst @@ -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 |