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.
精彩评论