#9958: Upgrade python to 2.7
---------------------------+------------------------------------------------
Reporter: mhampton | Owner: tbd
Type: enhancement | Status: needs_work
Priority: major | Milestone:
Component: packages | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
---------------------------+------------------------------------------------
Comment(by fbissey):
I have attached some patches to fix all the noise for numerics and
formatting changes. What's left should be looked at before patching.
There are several failures because hashes have changed but I cannot say it
is allright to just change the doctest:
{{{
sage -t -long -force_lib "devel/sage-
main/sage/rings/padics/padic_capped_relative_element.pyx"
**********************************************************************
File "/usr/share/sage/devel/sage-
main/sage/rings/padics/padic_capped_relative_element.pyx", line 2339:
sage: hash(R(-1))
Expected:
95367431640624
Got:
1977800240
**********************************************************************
}}}
{{{
sage -t -long -force_lib "devel/sage-main/sage/rings/integer.pyx"
**********************************************************************
File "/usr/share/sage/devel/sage-main/sage/rings/integer.pyx", line 2995:
sage: n = -920390823904823094890238490238484; n.__hash__()
Expected:
6874330978542788722
Got:
-2623069716
**********************************************************************
File "/usr/share/sage/devel/sage-main/sage/rings/integer.pyx", line 3010:
sage: hash(n)
Expected:
-9223372036854767616
Got:
8192
**********************************************************************
File "/usr/share/sage/devel/sage-main/sage/rings/integer.pyx", line 3013:
sage: hash(n) == hash(int(n))
Expected:
True
Got:
False
**********************************************************************
}}}
That hash(n) == hash(int(n)) is now false should be looked into carefully.
{{{
sage -t -long -force_lib "devel/sage-
main/sage/combinat/words/nfactor_enumerable_word.py"
**********************************************************************
File "/usr/share/sage/devel/sage-
main/sage/combinat/words/nfactor_enumerable_word.py", line 20:
sage: it.next()
Expected:
word: 6456
Got:
word: 5645
**********************************************************************
File "/usr/share/sage/devel/sage-
main/sage/combinat/words/nfactor_enumerable_word.py", line 22:
sage: it.next()
Expected:
word: 5645
Got:
word: 6456
**********************************************************************
}}}
I think that one is OK, just a change of order but a second opinion would
be nice.
Finally there are still three tests killed in libsingular's id_delete
because a ring has been garbage collected even so there are some
precautions in place for it:
[http://groups.google.com/group/sage-
devel/browse_thread/thread/8c165c887d6b9e54]
Next we need an updated python spkg so that more people can play and even
try the patchbot on it.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9958#comment:27>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.