问题
Which of these ways is more readable for Boolean Method in Python?
document.is_editable
document.editable
document.has_editable
document.can_be_editable
document.can_edit
回答1:
I would choose the first one (from the point of view of a Java developer).
来源:https://stackoverflow.com/questions/16214385/python-boolean-method-naming-readability