New submission from Denilson Figueiredo de Sá <denilso...@gmail.com>:

When reading the documentation for call_soon(), call_later(), call_at(), and 
several other functions, the sentence that describes the return value is in 
passive voice:
https://docs.python.org/3/library/asyncio-eventloop.html

> An instance of asyncio.TimerHandle is returned which can be used to cancel 
> the callback.

The problem:

Most functions in Python documentation describe the return value by "Return 
foobar", an active voice sentence at the beginning of a paragraph. (e.g. 
https://docs.python.org/3/library/functions.html ) Thus, for the reader, it's 
easy to quickly skim the text for the return value. Even easier because the 
reader is already trained to do so, given other occurrences in the 
documentation.

However, by hiding "is returned" in the middle of the sentence/paragraph, the 
reader can't easily find the return value, having to carefully read through all 
the text. Not only this is slower, but way more difficult if the reader is in a 
hurry or tired. (That was my case, I missed that sentence even after looking at 
the documentation several times.)

Solution:

Change it to: Return an instance of asyncio.TimerHandle which can be used to 
cancel the callback.

Further solution:

Search the documentation for other cases of "is returned" and consider if it is 
worth rewording as active voice.

Bonus link: https://developers.google.com/tech-writing/one/active-voice

----------
assignee: docs@python
components: Documentation
messages: 375603
nosy: denilsonsa, docs@python
priority: normal
severity: normal
status: open
title: Please use active voice "Return foobar" instead of passive voice "foobar 
is returned"
type: enhancement
versions: Python 3.10, Python 3.8, Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41575>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to