[Edu-sig] Uniform Access Principle confusion
Arthur
ajsiegel at optonline.net
Fri Oct 14 02:35:47 CEST 2005
> -----Original Message-----
> From: Kirby Urner [mailto:urnerk at qwest.net]
> Sent: Thursday, October 13, 2005 7:35 PM
> To: 'Arthur'; edu-sig at python.org
> Subject: RE: [Edu-sig] Uniform Access Principle confusion
>
>
> >>> mytri = Triangle()
> >>> mytri.C.degrees
> 90
> >>> mytri.C.radians
> 1.5707963267948966
Well that looks simple, elegant, and straightforward enough for my purposes.
Is there a simple elegant and straightforward way to implement this API in
Python that I am missing? I know better than to assume that I don't miss
the obvious when it comes to this stuff.
Art
More information about the Edu-sig
mailing list