Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 12c6cdf

Browse files
authoredJun 11, 2018
bpo-33745: Add What's New for empty function docstring change. (pythonGH-7611)
1 parent ef057bf commit 12c6cdf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎Doc/whatsnew/3.7.rst

+5
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)
Please sign in to comment.