#18799: Python 3 preparation: Change syntax of raise with traceback
---------------------------+----------------------------
   Reporter:  wluebbe      |            Owner:
       Type:  enhancement  |           Status:  new
   Priority:  major        |        Milestone:  sage-6.8
  Component:  misc         |         Keywords:  python3
  Merged in:               |          Authors:
  Reviewers:               |  Report Upstream:  N/A
Work issues:               |           Branch:
     Commit:               |     Dependencies:
   Stopgaps:               |
---------------------------+----------------------------
 {{{2to3}}} proposes changes for
 {{{
 raise E, V, T -> raise E(V).with_traceback(T)
 raise E, None, T -> raise E.with_traceback(T)
 }}}
 These changes are invalid (see also #18796).

 Several options are given in the documentation of python-future (see http
 ://python-future.org/compatible_idioms.html#raising-exceptions).

 This ticket is tracked as a dependency of meta-ticket #16052.
 The simple {{{raise}}} statements are fixed in #15990.

--
Ticket URL: <http://trac.sagemath.org/ticket/18799>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to