开发者

Are boolean instance variables prepended with "is" in Python?

Is it standard practice or convention in Python to prepe开发者_如何学JAVAnd boolean instance variables with is?

For example:

"options.isVerbose"


Mixed-case is less common than underscores: is_verbose, and actually, the is- prefix isn't all that common. I guess there isn't a strong convention one way or the other.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜