Is this considered black magic?
Rainer Deyke
root at rainerdeyke.com
Mon Nov 12 13:13:26 EST 2001
"Scherer, Bill" <Bill.Scherer at VerizonWireless.com> wrote in message
news:mailman.1005585556.28492.python-list at python.org...
>
> On Mon, 12 Nov 2001 17:02:38 +0100, Laura Creighton <lac at strakt.com>
wrote:
> (snip)
> >I have a new problem. I've just lost a major amount of precision in my
> >language usage. What is the collective noun for 'attributes that aren't
> >methods (you can't call them)'?
>
> UML refers to methods as 'operations', and the uncallable
> attributes as 'attributes'...
I don't know UML, but I suspect this is a different distinction. Consider:
class Widget:
def __init__(self, callback): self.callback = callback
def go(self): return self.callback()
Would a Widget's 'callback' attribute really be considered an 'operation' in
this context?
--
Rainer Deyke (root at rainerdeyke.com)
Shareware computer games - http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor
More information about the Python-list
mailing list