[PEP draft 2] Adding new math operators

Huaiyu Zhu hzhu at localhost.localdomain
Thu Aug 10 12:59:26 EDT 2000


On 10 Aug 2000 10:49:49 +0200, Konrad Hinsen <hinsen at cnrs-orleans.fr> wrote:
>hzhu at localhost.localdomain (Huaiyu Zhu) writes:
>
>> If you mean adding .E to numbers in the core, then that's a big change,
>> certainly not as they are today.  It does require a design that specifies
>
>A minor modification to the implementation of the number types: adding
>an attribute that returns the number itself. 10 lines of code per number
>type.

So you are saying a.E*b.M would return matrix instead of raising exception
if a==3?

Huaiyu



More information about the Python-list mailing list