Skip to content

Commit 023ad72

Browse files
committed
Add requested changes
1 parent fb654a4 commit 023ad72

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Doc/whatsnew/3.15.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,20 +175,25 @@ Other language changes
175175
* Several error messages incorrectly using the term "argument" have been corrected.
176176
(Contributed by Stan Ulbrych in :gh:`133382`.)
177177

178-
* The interpreter now provides helpful suggestions when :func:`delattr` fails due to a missing attribute. When an attribute name that closely resembles an existing attribute is used, the interpreter will suggest the correct attribute name in the error message. For example:
178+
* The interpreter now provides helpful suggestions
179+
when :func:`delattr` fails due to a missing attribute.
180+
181+
When an attribute name that closely resembles an existing attribute is used,
182+
the interpreter will suggest the correct attribute
183+
name in the error message. For example:
179184

180185
.. doctest::
181186

182187
>>> class A:
183188
... pass
184189
>>> a = A()
185190
>>> a.abcde = 1
186-
>>> del a.abcdf
191+
>>> del a.abcdf # doctest: +ELLIPSIS
187192
Traceback (most recent call last):
188193
...
189194
AttributeError: 'A' object has no attribute 'abcdf'. Did you mean: 'abcde'?
190195

191-
(Contributed by [sobolevn] and Pranjal Prajapati in :gh:`136588`.)
196+
(Contributed by Nikita Sobolev and Pranjal Prajapati in :gh:`136588`.)
192197

193198

194199
New modules

0 commit comments

Comments
 (0)