[Numpy-discussion] except expression discussion on python-ideas

Robert Kern robert.kern at gmail.com
Wed Feb 19 08:50:56 EST 2014

On Wed, Feb 19, 2014 at 3:18 AM, Alexander Belopolsky <ndarray at mac.com> wrote:
> I would like to invite numpy community to weigh in on the idea that is
> getting momentum at
> https://mail.python.org/pipermail/python-ideas/2014-February/025437.html
> The main motivation is to provide syntactic alternative to proliferation of
> default value options, so that
> x = getattr(u, 'answer', 42)
> can be written as
> x = y.answer except ... 42

> Effectively, Python is about to gain support for a new operator and
> operators are very precious for numpy.  So, I think numpy community has a
> horse in that race.

It's control flow, not an operator. I haven't seen a proposal that
would use any precious syntactic possibilities that numpy might want
to use for an operator.

Robert Kern

More information about the NumPy-Discussion mailing list