Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit308f789

Browse files
authored
bpo-29474: Improve documentation for weakref.WeakValueDictionary (#22)
There were some grammatical errors in weakref.WeakValueDictionarydocumentation.
1 parent89b1824 commit308f789

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎Doc/library/weakref.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ Extension types can easily be made to support weak references; see
166166
performed by the program during iteration may cause items in the
167167
dictionary to vanish "by magic" (as a side effect of garbage collection).
168168

169-
:class:`WeakKeyDictionary` objects havethe followingadditionalmethods. These
170-
expose the internal references directly. The references are not guaranteed to
169+
:class:`WeakKeyDictionary` objects haveanadditionalmethod that
170+
exposes the internal references directly. The references are not guaranteed to
171171
be "live" at the time they are used, so the result of calling the references
172172
needs to be checked before being used. This can be used to avoid creating
173173
references that will cause the garbage collector to keep the keys around longer
@@ -192,9 +192,9 @@ than needed.
192192
by the program during iteration may cause items in the dictionary to vanish "by
193193
magic" (as a side effect of garbage collection).
194194

195-
:class:`WeakValueDictionary` objects havethe followingadditionalmethods.
196-
These method have thesame issues as theand:meth:`keyrefs` method of
197-
:class:`WeakKeyDictionary`objects.
195+
:class:`WeakValueDictionary` objects haveanadditionalmethod that has the
196+
same issues as the:meth:`keyrefs` method of:class:`WeakKeyDictionary`
197+
objects.
198198

199199

200200
..method::WeakValueDictionary.valuerefs()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp