Robert Wright added the comment:
Perhaps there's confusion over what I mean by "style guide". I'd happily take
Steven's message *as* the style guide. Or, at the very least, the clarification
that sentinels are to be thought of as constants.
It's one of th
Robert Wright added the comment:
Just the classic problems caused by inconsistency in code - confusion when
reading, and disagreements when writing.
For reading: Where should I look in a file for the sentinels? Is this value a
sentinel, or is it some other type of variable?
For writing
New submission from Robert Wright :
There should be a style guide for tests, to prevent arguments about their use
in future code.
--
messages: 328986
nosy: madman bob
priority: normal
severity: normal
status: open
title: Add style guide for unit tests
New submission from Robert Wright :
Sentinel values are used inconsistently in the Python code base.
It would be helpful to have a style guide (about eg. casing, placement, and
sentinel reuse) to prevent arguments about their use in future code.
--
messages: 328984
nosy: madman bob
Change by Robert Wright :
--
pull_requests: +8064
___
Python tracker
<https://bugs.python.org/issue32321>
___
___
Python-bugs-list mailing list
Unsubscribe: