[PYTHON MATRIX-SIG] Re: Conversion

Jim Fulton jim.fulton@digicool.com
Tue, 01 Apr 1997 17:57:06 -0500


Guido van Rossum wrote:
>
(snip) 
> 
> It's currently a method: z.conjugate().  You could of course write
> 
>         def co(z): return z.conjugate()
> 
> but it would run much slower.  I am thinking to propose to make
> conjugate() a built-in function (it could return its argument
> unchanged for non-complex numbers).
> 
(snip)
> 
> I was asking for arg(z), which currently does not exist.
> 

I hate the idea of adding functions to builtins for one domain/type.

I'd much prefer a method, or a global function defined in a specialized 
module.

Jim

-- 
Jim Fulton         Digital Creations
jim@digicool.com   540.371.6909
## Python is my favorite language ##
##     http://www.python.org/     ##

_______________
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
_______________