Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #82386

Re: is_<whatever_you_are_testing_for> as method or property?

References <CABUeae-rNeN_dGgkgauNr+-qChXvkgenBmgLbFioe+JDqiT+Hg@mail.gmail.com> <CAPTjJmojWeyB_bv-6Rjzkno6Cb7NiUKo7rt4Th6fvNPOsGv_jQ@mail.gmail.com> <857fxxhnx8.fsf@benfinney.id.au>
From Devin Jeanpierre <jeanpierreda@gmail.com>
Date 2014-12-11 13:45 -0800
Subject Re: is_<whatever_you_are_testing_for> as method or property?
Newsgroups comp.lang.python
Message-ID <mailman.16873.1418334377.18130.python-list@python.org> (permalink)

Show all headers | View raw


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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: is_<whatever_you_are_testing_for> as method or property? Devin Jeanpierre <jeanpierreda@gmail.com> - 2014-12-11 13:45 -0800

csiph-web