#15994: Python 3 preparation: Change for removed members of types module
-------------------------------------+-------------------------------------
       Reporter:  wluebbe            |        Owner:
           Type:  enhancement        |       Status:  new
       Priority:  major              |    Milestone:  sage-6.2
      Component:  distribution       |   Resolution:
       Keywords:  python3            |    Merged in:
        Authors:                     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/wluebbe/ticket/15994             |  f741ed21b0019f1d6e1119bdd2038a337f7174cc
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by wluebbe):

 There is a Python ticket [[http://bugs.python.org/issue8206|2to3 doesn't
 convert 'types.InstanceType' to 'object']].

 The recommendation seems to be
 {{{
 or add

 try:
   from types import InstanceType
 except ImportError:
   InstanceType = object

 to the top of the module; this would then work for both 2.x and 3.x
 (assuming that replacing InstanceType with object is actually correct in
 the code in question).
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/15994#comment:2>
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