Author jonathan-lp
Recipients docs@python, jonathan-lp, vinay.sajip
Date 2019-07-13.08:38:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1563007093.59.0.165088856932.issue37563@roundup.psfhosted.org>
In-reply-to
Content
> The devil is in the detail. If stream=sys.stderr is specified, that takes effect at import time. If stream=None is specified and the implementation chooses to treat that as sys.stderr, that takes effect at the time of the call. The two are not equivalent.

But this isn't what the prose says at all. You're right, the prose clearly say that the default is sys.stderr, however the code doesn't show that, and many people won't read the prose (I don't a lot of the time), they'll only look at the code snippet because that's all they think they need. The code-snippet claims that the default is None, which from a user perspective isn't true.

Again I point out that the documentation is for users, not implementers. We users Do. Not. Care. about how wonderfully clever your implementation is, we care about how it actually works. Whatever Rube-Goldbergian implementation details there are behind the scenes are of no interest to us.

Yet again:
There's a standard for documenting defaults for keyword arguments, I would ask that it please be used consistently to help us users.

Fine, lets try this another way - does anyone else have opinions on this? What's the convention for documentation defaults?
History
Date User Action Args
2019-07-13 08:38:13jonathan-lpsetrecipients: + jonathan-lp, vinay.sajip, docs@python
2019-07-13 08:38:13jonathan-lpsetmessageid: <1563007093.59.0.165088856932.issue37563@roundup.psfhosted.org>
2019-07-13 08:38:13jonathan-lplinkissue37563 messages
2019-07-13 08:38:13jonathan-lpcreate