Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #82385
| From | Ben Finney <ben+python@benfinney.id.au> |
|---|---|
| Subject | Re: is_<whatever_you_are_testing_for> as method or property? |
| Date | 2014-12-12 08:33 +1100 |
| References | <CABUeae-rNeN_dGgkgauNr+-qChXvkgenBmgLbFioe+JDqiT+Hg@mail.gmail.com> <CAPTjJmojWeyB_bv-6Rjzkno6Cb7NiUKo7rt4Th6fvNPOsGv_jQ@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.16872.1418333714.18130.python-list@python.org> (permalink) |
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”? -- \ “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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: is_<whatever_you_are_testing_for> as method or property? Ben Finney <ben+python@benfinney.id.au> - 2014-12-12 08:33 +1100
csiph-web