Skip to content

Commit e66b3f1

Browse files
committed
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).
1 parent 53aa185 commit e66b3f1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

docs/writing/style.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,6 @@ while privatising a public property might be a much harder operation.
211211
Returning values
212212
~~~~~~~~~~~~~~~~
213213

214-
Python functions return a value, and you can control this return value with the
215-
return statement for all of them but the object constructor `__init__()` and the
216-
special case of generators.
217-
218214
When a function grows in complexity is not uncommon to use multiple return statements
219215
inside the function's body. However, in order to keep a clear intent and a sustainable
220216
readability level, it is preferable to avoid returning meaningful values from many

0 commit comments

Comments
 (0)