> -----Original Message-----
> From: Kirby Urner [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 12, 2005 2:25 PM
> To: 'Arthur'; [email protected]
> Subject: RE: [Edu-sig] Uniform Access Principle confusion
> 
> 
> Note that passing an argument is not the only way to tell an object stuff
> like "my preferred unit of measure."  That could also be regarded as a
> change in state, and be handled with another attribute, e.g.:
> 
>   >>> Triangle.anglemeasure = 'degrees' # set default class attribute
>   >>> mytri = Triangle((30,60,90))      # instantiate using degrees

But in my (perhaps overly strict) way of OO thinking the unit of measure is
an attribute of the angle, not of the Triangle.

Is there a way to a accomplish a "change of state" of the angle "attribute",
other by sending it a parameter?

Art


_______________________________________________
Edu-sig mailing list
[email protected]
http://mail.python.org/mailman/listinfo/edu-sig

Reply via email to