is_<whatever_you_are_testing_for> as method or property?

Devin Jeanpierre jeanpierreda at gmail.com
Thu Dec 11 16:45:28 EST 2014


On Thu, Dec 11, 2014 at 1:33 PM, Ben Finney <ben+python at benfinney.id.au> wrote:
> 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”?

Obviously, yes.

-- Devin



More information about the Python-list mailing list