[Numpy-discussion] proposing a "beware of [as]matrix()" warning
Nikolaus Rath
Nikolaus at rath.org
Wed Apr 28 12:50:00 EDT 2010
Robert Kern <robert.kern at gmail.com> writes:
>> Overloading '*' and '**' while convenient does have consequences. It
>> would be nice if we could have a few more infix operators in Python to
>> allow separation of element-by-element calculations and "dot-product"
>> calculations.
http://www.python.org/dev/peps/pep-0225/ was considered and rejected.
But that was in 2000...
>> While I don't have any spare cycles to push it forward and we are
>> already far along on the NumPy to 3.0, I had wondered if we couldn't
>> use the leverage of Python core developers wanting NumPy to be ported
>> to Python 3 to actually add a few more infix operators to the language.
I don't think that stands a chance: http://www.python.org/dev/peps/pep-3003/
Best,
-Nikolaus
--
»Time flies like an arrow, fruit flies like a Banana.«
PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 02CF A9AD B7F8 AE4E 425C
More information about the NumPy-Discussion
mailing list