[Edu-sig] Properties use case
ajsiegel at optonline.net
Sat Mar 18 20:11:03 CET 2006
> >-----Original Message-----
> >From: edu-sig-bounces at python.org
> >[mailto:edu-sig-bounces at python.org] On Behalf Of Arthur
> >Sent: Saturday, March 18, 2006 1:39 PM
> >To: 'Scott David Daniels'; edu-sig at python.org
>>I don't understand, really, the distinction
> >between a vector expressed as a list and a vector expressed
> >as a tuple, from the concept of a complex number in mutable
> >form, and one in immutable form.
> >If you feel like trying to help...
Put another way, if I take the PyPy implementation of the complex primitive,
and comment out the 2 property lines that restrict the write to real and
imag - and instead of calling it a primitive I call it a class. And I use
the class as such - where have I gone wrong?
More information about the Edu-sig