<div class="gmail_quote">On Sat, Dec 31, 2011 at 2:16 AM, julien tayon <span dir="ltr"><<a href="mailto:julien@tayon.net">julien@tayon.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Dear All :)<br>
<br>
2011/12/30 Eric Snow <<a href="mailto:ericsnowcurrently@gmail.com">ericsnowcurrently@gmail.com</a>>:<br>
<div><div class="h5">> On Fri, Dec 30, 2011 at 10:02 AM, Guido van Rossum <<a href="mailto:guido@python.org">guido@python.org</a>> wrote:<br>
>> What I meant is similar to set union on the keys, where if a key exists in<br>
>> both dicts, the value in the result is equal to one of the values in the<br>
>> operands (and if the value is the same for both operands, that value is also<br>
>> the result value).<br>
><br>
> +1<br>
><br>
> This is the one I was thinking of too.<br>
><br>
</div></div>Well, since I have coded way too much in Perl, my altered sense of<br>
reality has come to a concept I may be introducing too early which is<br>
: algebrae.<br>
<br>
strings, lists, ... have a record algebrae.<br>
ndarray, accudict have a linear algebrae<br>
sets ... have sets algebrae.<br>
<br>
And much more algebrae exists wich all exists not only in my<br>
imagination, but also in math (wich I quite dislike). (Abelian<br>
stuff/Group/matrix/hilbert)<br>
All of these algebrae are consistent as long as any object in the<br>
chain of algebrae are following the same rules.<br>
<br>
And each of these are very legitimate (even though of course my dict<br>
addition is the best without trying to be obnoxious).<br>
<br>
<br>
I was kind of thinking of<br>
1) giving a property to object called .. __algebrae__,<br>
2) and through some magic being able to change the algebrae of an<br>
object on the fly.<br>
<br>
My twisted sense of reality inherited from Perl (but a little less<br>
than my math books) tells me There Is More Than One Way To<br>
Consistently Add/Mul/Div/Sub It.<br>
<br>
<br>
As a Proof of Concept I could deliver a monkeypatching of list() that<br>
makes it behave like an numpy array.<br></blockquote><div><br>Please don't present this in terms of modifications of existing functions/types/methods. Please use subclasses, new modules, new functions, etc. <br></div>

<div> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
But, at first I wish to concentrate on dict addition, since I can only<br>
steal a few hours connectivity per day ... So I will try to answer to<br>
everyone since I saw some spoilers of what I had hidden in my mind  :)<br>
<br>
Cheers<br>
Thanks<br>
</blockquote></div><br><br clear="all"><br>-- <br>--Guido van Rossum (<a href="http://python.org/~guido">python.org/~guido</a>)<br>