fficiently get this
same behaviour. If so, I'd appreciate being educated.
Thanks,
Jeff McAninch
--
==
Jeffrey E. McAninch, PhD
Physicist, X-2-IFD
Los Alamos National Laboratory
Phone: 505-667-0374
Email: mcani...@lanl.gov
==
Raymond Hettinger wrote:
If accepted, this would also solve the feature requests for various
functions to have default arguments.
For example:
x = min(seq) except ValueError else 0 # default to zero for
empty sequences
It would also be helpful in calculations that have algebraic
restr
Nick Coghlan wrote:
Option 1:
Change the relative order of the clauses by putting the exception
definition last:
x = float(string) except float('nan') if ValueError
op(float(string) except float('nan') if ValueError)
I actually like this one (that's why I listed it first). It gets the
clau
Should be legal, right?, since syntax would be
except if
Dino Viehland wrote:
On option 1 is this legal then?
x = float(string) except float('nan') if some_check() else float('inf') if
ValueError
Thinking more about the syntax options: if P.J.'s "if" Option is used,
it should also be