From e66b3f1a388c165a1343eaf5cb66700b98940757 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Tue, 20 Nov 2012 01:51:02 -0600 Subject: [PATCH] Remove a paragraph that wasn't adding value In addition to be totally wrong about __init__, the description of generators was confusing (and more or less wrong). --- docs/writing/style.rst | 4 ---- 1 file changed, 4 deletions(-) diff --git a/docs/writing/style.rst b/docs/writing/style.rst index d62b920fa..2d6316e5f 100644 --- a/docs/writing/style.rst +++ b/docs/writing/style.rst @@ -211,10 +211,6 @@ while privatising a public property might be a much harder operation. Returning values ~~~~~~~~~~~~~~~~ -Python functions return a value, and you can control this return value with the -return statement for all of them but the object constructor `__init__()` and the -special case of generators. - When a function grows in complexity is not uncommon to use multiple return statements inside the function's body. However, in order to keep a clear intent and a sustainable readability level, it is preferable to avoid returning meaningful values from many