Should be legal, right?, since syntax would be
<expression> except <expression> if <exception>
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 optional.
That is, I would want this to also be legal,
<expression> except <expression>
to trap any exception when robustness is more important than catching a
specific exception.
What would be the typical next step in trying to put this forward? A
draft PEP?
--
==========================
Jeffrey E. McAninch, PhD
Physicist, X-2-IFD
Los Alamos National Laboratory
Phone: 505-667-0374
Email: mcani...@lanl.gov
==========================
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com