Skip to content

Commit 4eb9f43

Browse files
authored
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
1 parent 96ce227 commit 4eb9f43

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

Doc/c-api/exceptions.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -983,9 +983,6 @@ Notes:
983983
This is a base class for other standard exceptions.
984984
985985
(2)
986-
This is the same as :exc:`weakref.ReferenceError`.
987-
988-
(3)
989986
Only defined on Windows; protect code that uses this by testing that the
990987
preprocessor macro ``MS_WINDOWS`` is defined.
991988

Doc/library/weakref.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -327,12 +327,6 @@ objects.
327327
types.
328328

329329

330-
.. exception:: ReferenceError
331-
332-
Exception raised when a proxy object is used but the underlying object has been
333-
collected. This is the same as the standard :exc:`ReferenceError` exception.
334-
335-
336330
.. seealso::
337331

338332
:pep:`205` - Weak References

0 commit comments

Comments
 (0)