is_<whatever_you_are_testing_for> as method or property?
Ben Finney
ben+python at benfinney.id.au
Thu Dec 11 16:33:23 EST 2014
Chris Angelico <rosuav at gmail.com> writes:
> A property should be used if what you're creating is "virtually an
> attribute".
Methods are attributes. Are you distinguishing here between “callable
attribute” versus “non-callable attribute”?
--
\ “Repetition leads to boredom, boredom to horrifying mistakes, |
`\ horrifying mistakes to God-I-wish-I-was-still-bored, and it |
_o__) goes downhill from there.” —Will Larson, 2008-11-04 |
Ben Finney
More information about the Python-list
mailing list