#5758: [with patch, needs review] weird "hello" bug in homset coerce!
----------------------+-----------------------------------------------------
Reporter: was | Owner: robertwb
Type: defect | Status: new
Priority: major | Milestone: sage-4.1.1
Component: coercion | Keywords:
Reviewer: | Author:
Merged: |
----------------------+-----------------------------------------------------
Changes (by jhpalmieri):
* cc: robertwb (added)
Comment:
The cuplrit here is in parent.pyx,
{{{
cdef int init_coerce(self, bint warn=True) except -1:
if self._coerce_from_hash is None:
if warn:
print "init_coerce() for ", type(self)
raise ZeroDivisionError, "hello"
...
}}}
I'm attaching a patch which I think fixes the problem, but maybe someone
familiar with the coercion code should take a look. (It's a one-line
patch, plus the doctest that William requested.)
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5758#comment:3>
Sage <http://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
-~----------~----~----~----~------~----~------~--~---