[issue21176] Implement matrix multiplication operator (PEP 465)

2014-06-11 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue21176] Implement matrix multiplication operator (PEP 465)

2014-04-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset c553d8f72d65 by Benjamin Peterson in branch 'default': PEP 465: a dedicated infix operator for matrix multiplication (closes #21176) http://hg.python.org/cpython/rev/c553d8f72d65 -- nosy: +python-dev resolution: -> fixed stage: needs patch

[issue21176] Implement matrix multiplication operator (PEP 465)

2014-04-09 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think this patch is fairly straightforward, and I don't want it to rot, so here we go... -- ___ Python tracker ___ ___

[issue21176] Implement matrix multiplication operator (PEP 465)

2014-04-09 Thread Nathaniel Smith
Changes by Nathaniel Smith : -- nosy: +njs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue21176] Implement matrix multiplication operator (PEP 465)

2014-04-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: Here's what I consider a complete patch. -- assignee: belopolsky -> benjamin.peterson Added file: http://bugs.python.org/file34762/mat-mult5.patch ___ Python tracker ___

[issue21176] Implement matrix multiplication operator (PEP 465)

2014-04-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: Here's my latest and greatest version. I'll finish up after some sleep. -- Added file: http://bugs.python.org/file34758/mat-mult4.patch ___ Python tracker __

[issue21176] Implement matrix multiplication operator (PEP 465)

2014-04-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: + .. versionadded:: 3.4 Are you planning to use the time machine? :-) -- ___ Python tracker ___ ___

[issue21176] Implement matrix multiplication operator (PEP 465)

2014-04-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: On Mon, Apr 7, 2014, at 22:25, Alexander Belopolsky wrote: > > Alexander Belopolsky added the comment: > > + .. versionadded:: 3.4 > > Are you planning to use the time machine? :-) Good catch. :) -- ___ Pytho

[issue21176] Implement matrix multiplication operator (PEP 465)

2014-04-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: On Mon, Apr 7, 2014, at 22:23, Alexander Belopolsky wrote: > > Alexander Belopolsky added the comment: > > Thanks for stepping in. From a quick look at your patch I don't see > anything that I would do much differently. > > I noticed some whitespace issues

[issue21176] Implement matrix multiplication operator (PEP 465)

2014-04-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Thanks for stepping in. From a quick look at your patch I don't see anything that I would do much differently. I noticed some whitespace issues in Include/token.h: -#define AT 49 -#define RARROW 50 -#define ELLIPSIS51

[issue21176] Implement matrix multiplication operator (PEP 465)

2014-04-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: On Mon, Apr 7, 2014, at 22:09, Alexander Belopolsky wrote: > > Alexander Belopolsky added the comment: > > Wow! That was quick. And I am still fighting with bitbucket. Maybe I > should stop duplicating the effort at this point. Sorry about that. I only saw

[issue21176] Implement matrix multiplication operator (PEP 465)

2014-04-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Wow! That was quick. And I am still fighting with bitbucket. Maybe I should stop duplicating the effort at this point. -- ___ Python tracker ___

[issue21176] Implement matrix multiplication operator (PEP 465)

2014-04-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: Here is a nearly complete patch... -- Added file: http://bugs.python.org/file34756/mat-mult3.patch ___ Python tracker ___ ___

[issue21176] Implement matrix multiplication operator (PEP 465)

2014-04-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I've got to the point where I can do >>> import ast >>> ast.dump(ast.parse('a @ b')) "Module(body=[Expr(value=BinOp(left=Name(id='a', ctx=Load()), op=MatMult(), right=Name(id='b', ctx=Load(])" I'll post a link to my bitbucket clone shortly. ---

[issue21176] Implement matrix multiplication operator (PEP 465)

2014-04-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: Here are changes to the operator module... -- Added file: http://bugs.python.org/file34755/mat-mult2.patch ___ Python tracker ___ ___

[issue21176] Implement matrix multiplication operator (PEP 465)

2014-04-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: Here's a first patch. It works, but needs more tests (associativity, precedence, __rmatmul__, etc...) and also docs. I can work on that tomorrow. -- keywords: +patch nosy: +benjamin.peterson Added file: http://bugs.python.org/file34754/mat-mult1.patc

[issue21176] Implement matrix multiplication operator (PEP 465)

2014-04-07 Thread Alexander Belopolsky
New submission from Alexander Belopolsky: [Nathaniel Smith at numpy-discussion] Guido just formally accepted PEP 465: https://mail.python.org/pipermail/python-dev/2014-April/133819.html http://legacy.python.org/dev/peps/pep-0465/#implementation-details Yay. The next step is to implement it