[Zope3-dev] Re: ObjectHub notes: ruid vs hid vs. ...

Martijn Faassen faassen@vet.uu.nl
Tue, 29 Oct 2002 22:32:33 +0100


Chris Withers wrote:
> Steve Alexander wrote:
> >
> >+1
> >
> >Although, why not go with attributes rather than accessor methods?
> >
> >So, just SomeEvent.hubId rather than SomeEvent.getHubId().
> 
> You know that not having that as a method will come back and bite in the 
> end and require some such computed attribute nastiness ;-)

Properties (computed attributes) have built-in support in Python 2.2,
so using attributes is not nasty; there's a simple and standard way to
make them computed if necessary.

Regards,

Martijn