> >-----Original Message-----
> >From: Michael Tobis [mailto:[EMAIL PROTECTED] 
> >Sent: Tuesday, March 21, 2006 12:18 PM
> >To: Arthur; edu-sig@python.org
> >Subject: Re: [Edu-sig] Properties use case
>> If you want to beat me to the 
> >punch read this thread (if you dare):
> > > >http://mail.python.org/pipermail/python-list/2006-March/331842.html


I dared.

And it is amazing to me how quickly my eyes glaze over - how unintelligent I
am about certain coding issues/styles.

I'd would just as soon spell out the magic, method by method - if that is
all we are trying to avoid.  More typing, maybe a little more time - but
once it's there it's there, like forever. 3 hours/float(forever) = 0,
approximately. Unless I am misinterpreting what we are trying to do with the
nested defs and whatever the hell else is going on in there.

The PyPy complex number implementation was the basis for what I ended up
with.

http://codespeak.net/svn/pypy/dist/pypy/module/__builtin__/app_complex.py

As it happens I need a good deal more in terms of methods for my Complex
than the "conjugate" that is essentially it for the Python built-in.  What
other methods,  which need to be inplace transformations, and which need to
return new Complex objects, or even scalar values - the answers were all
pretty specific to my app, not choices I could (or need to I don't think)
justify on the basis of any general principles I can identify. 

Art



_______________________________________________
Edu-sig mailing list
Edu-sig@python.org
http://mail.python.org/mailman/listinfo/edu-sig

Reply via email to