#20629: some absolute imports in the rings folder
-------------------------+-------------------------------------------------
       Reporter:         |        Owner:
  chapoton               |       Status:  needs_work
           Type:         |    Milestone:  sage-7.3
  enhancement            |   Resolution:
       Priority:  major  |    Merged in:
      Component:         |    Reviewers:  Jeroen Demeyer, Travis Scrimshaw
  python3                |  Work issues:
       Keywords:         |       Commit:
  days74                 |  b67f3d48a4fcbdb4e9a54385189e7d4334d88d0e
        Authors:         |     Stopgaps:
  Frédéric Chapoton      |
Report Upstream:  N/A    |
         Branch:         |
  public/20629           |
   Dependencies:         |
-------------------------+-------------------------------------------------
Changes (by vbraun):

 * status:  positive_review => needs_work


Comment:

 Sage doesn't start with patch
 {{{

 /home/release/Sage/local/lib/python2.7/site-
 packages/sage/rings/rational_field.py in <module>()
      41     True
      42
      43 AUTHORS:
      44
      45 - Niles Johnson (2010-08): :trac:`3893`: ``random_element()``
 should pass on
      46   ``*args`` and ``**kwds``.
      47
      48 - Travis Scrimshaw (2012-10-18): Added additional docstrings for
 full coverage.
      49   Removed duplicates of ``discriminant()`` and ``signature()``.
      50
      51 """
      52 from __future__ import print_function, absolute_import
      53
      54 from .rational import Rational
      55 from .integer import Integer
 ---> 56 from . import infinity
         global infinity = undefined
      57 ZZ = None
      58
      59 from sage.structure.parent_gens import ParentWithGens
      60 import sage.rings.number_field.number_field_base as
 number_field_base
      61 from sage.misc.fast_methods import Singleton
      62
      63 class RationalField(Singleton, number_field_base.NumberField):
      64     r"""
      65     The class ``RationalField`` represents the field `\QQ` of
 rational numbers.
      66
      67     EXAMPLES::
      68
      69         sage: a =
 long(901824309821093821093812093810928309183091832091)
      70         sage: b = QQ(a); b
      71         901824309821093821093812093810928309183091832091

 ImportError: cannot import name infinity
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/20629#comment:29>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to