Skip to content

Commit 14a190c

Browse files
bpo-33745: Add What's New for empty function docstring change. (GH-7611)
(cherry picked from commit 12c6cdf) Co-authored-by: Ned Deily <nad@python.org>
1 parent a73399d commit 14a190c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Doc/whatsnew/3.7.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2431,3 +2431,8 @@ sufficient to both emit :exc:`BytesWarning` messages and have them converted
24312431
to exceptions. Instead, the flag must be set (to cause the warnings to be
24322432
emitted in the first place), and an explicit ``error::BytesWarning``
24332433
warnings filter added to convert them to exceptions.
2434+
2435+
Due to a change in the way docstrings are handled by the compiler, the
2436+
implicit ``return None`` in a function body consisting solely of a docstring
2437+
is now marked as occurring on the same line as the docstring, not on the
2438+
function's header line.

0 commit comments

Comments
 (0)