[Python-ideas] PEP 8 update on line length
Steven D'Aprano
steve at pearwood.info
Tue Feb 19 19:18:42 EST 2019
On Wed, Feb 20, 2019 at 01:41:27AM +1100, Chris Angelico wrote:
> page_count will usually be unambiguous. You might need total_pages to
> mean "not the current section", thus leaving the shorter one available
> for the narrower use. Obviously questions like this can't be answered
> without context, but at an absolute minimum, "number_of" can almost
> *always* be omitted.
I disagree with that last bit.
Of course we can replace "number_of" with its synonym "count", but we
can't typically just omit it. Does "pages" mean the number of pages or
the pages themselves?
--
Steven
More information about the Python-ideas
mailing list