Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate moved imports from sage.misc #17460

Closed
jdemeyer opened this issue Dec 7, 2014 · 34 comments
Closed

Deprecate moved imports from sage.misc #17460

jdemeyer opened this issue Dec 7, 2014 · 34 comments

Comments

@jdemeyer
Copy link

jdemeyer commented Dec 7, 2014

Lots of things are imported in sage.misc.misc for "backwards compatibility". Let's deprecate these.

Depends on #10057
Depends on #17455
Depends on #17458
Depends on #17459
Depends on #17465

Component: misc

Author: Jeroen Demeyer

Branch/Commit: 92de9fc

Reviewer: Frédéric Chapoton

Issue created by migration from https://trac.sagemath.org/ticket/17460

@jdemeyer jdemeyer added this to the sage-6.5 milestone Dec 7, 2014
@jdemeyer
Copy link
Author

jdemeyer commented Dec 8, 2014

Changed dependencies from #10057, #17455, #17458, #17459 to #10057, #17455, #17458, #17459, #17465

@jdemeyer
Copy link
Author

jdemeyer commented Dec 8, 2014

Branch: u/jdemeyer/ticket/17460

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 18, 2014

Branch pushed to git repo; I updated commit sha1. New commits:

8e8202aMerge remote-tracking branch 'origin/develop' into ticket/17460
fa8cb36Remove unused database modules
92753f4Merge commit 'fa8cb3694034f4d1735f7aaffee9c83e8ee65ce3' into ticket/17460
75d7418Skip lazy imports when docbuilding
96634b9Merge commit '75d7418c1d5e8e7bf2523cd2ad298d45fc4015d6' into ticket/17460

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 18, 2014

Commit: 96634b9

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 18, 2014

Branch pushed to git repo; I updated commit sha1. New commits:

afafc75Simplify computation of wordsize

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 18, 2014

Changed commit from 96634b9 to afafc75

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 18, 2014

Branch pushed to git repo; I updated commit sha1. New commits:

3dee489Deprecate is_32_bit and is_64_bit globals

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 18, 2014

Changed commit from afafc75 to 3dee489

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 24, 2014

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

14d3291Upgrade sagenb to version 0.11.2
d113d1dMerge branch 'u/jdemeyer/ticket/17455' of git://trac.sagemath.org/sage into ticket/10057
307c605Deprecate moved imports from sage.misc.misc

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Dec 24, 2014

Changed commit from 3dee489 to 307c605

@jdemeyer
Copy link
Author

Author: Jeroen Demeyer

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 19, 2015

Changed commit from 307c605 to f6e149c

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 19, 2015

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

f6e149cDeprecate moved imports from sage.misc.misc

@jdemeyer
Copy link
Author

Changed dependencies from #10057, #17455, #17458, #17459, #17465 to none

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 19, 2015

Changed commit from f6e149c to 67e7b5e

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 19, 2015

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

67e7b5eDeprecate moved imports from sage.misc.misc

@jdemeyer
Copy link
Author

Dependencies: #10057, #17455, #17458, #17459, #17465

@jdemeyer
Copy link
Author

Changed dependencies from #10057, #17455, #17458, #17459, #17465 to none

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 19, 2015

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

d12c094Deprecate moved imports from sage.misc.misc

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 19, 2015

Changed commit from 67e7b5e to d12c094

@jdemeyer
Copy link
Author

Dependencies: #10057, #17455, #17458, #17459, #17465

@fchapoton
Copy link
Contributor

comment:15

LGTM

@fchapoton
Copy link
Contributor

Reviewer: Frédéric Chapoton

@jdemeyer
Copy link
Author

comment:16

Thanks for the review!

@vbraun
Copy link
Member

vbraun commented Jan 24, 2015

comment:17

Merge conflict, probably with #14396

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 24, 2015

Branch pushed to git repo; I updated commit sha1. New commits:

96aac18trac #14396: ISGCI update, small graphs and recognition
7857634trac #14396: Merged with 6.5.beta5
f287feetrac #14396: Review
b44dcb0trac #14396: Review
026b281Merge ticket/14396 into ticket/17460

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 24, 2015

Changed commit from d12c094 to 026b281

@jdemeyer
Copy link
Author

comment:20

Merge needs review...

@fchapoton
Copy link
Contributor

comment:21

ok, looks good to me.

@vbraun
Copy link
Member

vbraun commented Jan 29, 2015

comment:22
sage -t --long src/sage/matrix/matrix_space.py
**********************************************************************
File "src/sage/matrix/matrix_space.py", line 129, in sage.matrix.matrix_space.MatrixSpace
Failed example:
    MatrixSpace(ZZ,10,2^31)
Expected:
    Traceback (most recent call last):                                   
    ...                                                                  
    ValueError: number of rows and columns must be less than 2^31 (on a 32-bit computer -- use a 64-bit computer for matrices with up to 2^63-1 rows and columns)           
Got:
    <BLANKLINE>
    Traceback (most recent call last):
      File "/home/buildslave-sage/slave/sage_git/build/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 488, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File "/home/buildslave-sage/slave/sage_git/build/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 850, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.matrix.matrix_space.MatrixSpace[2]>", line 1, in <module>
        MatrixSpace(ZZ,Integer(10),Integer(2)**Integer(31))
      File "sage/misc/classcall_metaclass.pyx", line 330, in sage.misc.classcall_metaclass.ClasscallMetaclass.__call__ (build/cythonized/sage/misc/classcall_metaclass.c:1176)
        return cls.classcall(cls,  *args, **opts)
      File "/home/buildslave-sage/slave/sage_git/build/local/lib/python2.7/site-packages/sage/matrix/matrix_space.py", line 228, in __classcall__
        cls, base_ring, nrows, ncols, sparse, implementation)
      File "sage/misc/cachefunc.pyx", line 1298, in sage.misc.cachefunc.WeakCachedFunction.__call__ (build/cythonized/sage/misc/cachefunc.c:8050)
        w = self.f(*args, **kwds)
      File "/home/buildslave-sage/slave/sage_git/build/local/lib/python2.7/site-packages/sage/structure/unique_representation.py", line 1021, in __classcall__
        instance = typecall(cls, *args, **options)
      File "sage/misc/classcall_metaclass.pyx", line 518, in sage.misc.classcall_metaclass.typecall (build/cythonized/sage/misc/classcall_metaclass.c:1603)
        res = <object> PyType_Type.tp_call(cls, args, opts)
      File "/home/buildslave-sage/slave/sage_git/build/local/lib/python2.7/site-packages/sage/matrix/matrix_space.py", line 287, in __init__
        raise ValueError("number of rows and columns may be at most %s" % sys.maxsize)
    ValueError: number of rows and columns may be at most 2147483647
**********************************************************************
File "src/sage/matrix/matrix_space.py", line 134, in sage.matrix.matrix_space.MatrixSpace
Failed example:
    MatrixSpace(ZZ,2^31,10)
Expected:
    Traceback (most recent call last):                                   
    ...                                                                  
    ValueError: number of rows and columns must be less than 2^31 (on a 32-bit computer -- use a 64-bit computer for matrices with up to 2^63-1 rows and columns)           
Got:
    <BLANKLINE>
    Traceback (most recent call last):
      File "/home/buildslave-sage/slave/sage_git/build/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 488, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File "/home/buildslave-sage/slave/sage_git/build/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 850, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.matrix.matrix_space.MatrixSpace[3]>", line 1, in <module>
        MatrixSpace(ZZ,Integer(2)**Integer(31),Integer(10))
      File "sage/misc/classcall_metaclass.pyx", line 330, in sage.misc.classcall_metaclass.ClasscallMetaclass.__call__ (build/cythonized/sage/misc/classcall_metaclass.c:1176)
        return cls.classcall(cls,  *args, **opts)
      File "/home/buildslave-sage/slave/sage_git/build/local/lib/python2.7/site-packages/sage/matrix/matrix_space.py", line 228, in __classcall__
        cls, base_ring, nrows, ncols, sparse, implementation)
      File "sage/misc/cachefunc.pyx", line 1298, in sage.misc.cachefunc.WeakCachedFunction.__call__ (build/cythonized/sage/misc/cachefunc.c:8050)
        w = self.f(*args, **kwds)
      File "/home/buildslave-sage/slave/sage_git/build/local/lib/python2.7/site-packages/sage/structure/unique_representation.py", line 1021, in __classcall__
        instance = typecall(cls, *args, **options)
      File "sage/misc/classcall_metaclass.pyx", line 518, in sage.misc.classcall_metaclass.typecall (build/cythonized/sage/misc/classcall_metaclass.c:1603)
        res = <object> PyType_Type.tp_call(cls, args, opts)
      File "/home/buildslave-sage/slave/sage_git/build/local/lib/python2.7/site-packages/sage/matrix/matrix_space.py", line 287, in __init__
        raise ValueError("number of rows and columns may be at most %s" % sys.maxsize)
    ValueError: number of rows and columns may be at most 2147483647
**********************************************************************
1 item had failures:
   2 of   7 in sage.matrix.matrix_space.MatrixSpace
    [261 tests, 2 failures, 2.05 s]

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 29, 2015

Branch pushed to git repo; I updated commit sha1. New commits:

92de9fcMake tests 32/64-bit independent

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jan 29, 2015

Changed commit from 026b281 to 92de9fc

@fchapoton
Copy link
Contributor

comment:25

ook. Positive review again.

@vbraun
Copy link
Member

vbraun commented Feb 8, 2015

Changed branch from u/jdemeyer/ticket/17460 to 92de9fc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants