You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Doc/whatsnew/3.15.rst
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -175,20 +175,25 @@ Other language changes
175
175
* Several error messages incorrectly using the term "argument" have been corrected.
176
176
(Contributed by Stan Ulbrych in :gh:`133382`.)
177
177
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:
179
184
180
185
.. doctest::
181
186
182
187
>>> classA:
183
188
... pass
184
189
>>> a = A()
185
190
>>> a.abcde =1
186
-
>>> del a.abcdf
191
+
>>> del a.abcdf# doctest: +ELLIPSIS
187
192
Traceback (most recent call last):
188
193
...
189
194
AttributeError: 'A' object has no attribute 'abcdf'. Did you mean: 'abcde'?
190
195
191
-
(Contributed by [sobolevn] and Pranjal Prajapati in :gh:`136588`.)
196
+
(Contributed by Nikita Sobolev and Pranjal Prajapati in :gh:`136588`.)
0 commit comments