FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-38374: Remove weakref.ReferenceError from docs (GH-18452) · python-emscripten/cpython@3f8d181 · GitHub

Repository navigation

Commit 3f8d181

Browse files
bpo-38374: Remove weakref.ReferenceError from docs (pythonGH-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 4eb9f43) Co-authored-by: Roger Hurwitz <rogerhurwitz@gmail.com>
1 parent c372f9b commit 3f8d181

2 files changed

Lines changed: 0 additions & 9 deletions

File tree

‎Doc/c-api/exceptions.rst‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -971,9 +971,6 @@ Notes:
971971
This is a base class for other standard exceptions.
972972
973973
(2)
974-
This is the same as :exc:`weakref.ReferenceError`.
975-
976-
(3)
977974
Only defined on Windows; protect code that uses this by testing that the
978975
preprocessor macro ``MS_WINDOWS`` is defined.
979976

‎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)

Back | FazBrowse Home | New Git URL