#16843: Zeromorphism
---------------------------------------+----------------------------
Reporter: mkamalakshya | Owner: mkamalakshya
Type: defect | Status: new
Priority: minor | Milestone: sage-6.4
Component: algebra | Resolution:
Keywords: | Merged in:
Authors: Kamalakshya Mahatab | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
---------------------------------------+----------------------------
Description changed by mkamalakshya:
Old description:
> {{{
> sage: Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> File "_sage_input_4.py", line 10, in <module>
> exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8
> -*-\\n" +
> _support_.preparse_worksheet_cell(base64.b64decode("Zj1IKDAp"),globals())+"\\n");
> execfile(os.path.abspath("___code___.py"))
> File "", line 1, in <module>
>
> File "/tmp/tmplncYUJ/___code___.py", line 3, in <module>
> exec compile(u'f=H(_sage_const_0 )
> File "", line 1, in <module>
>
> File "/home/kamalakshya/sage/local/lib/python2.7/site-
> packages/sage/rings/homset.py", line 184, in __call__
> raise TypeError("images do not define a valid homomorphism")
> TypeError: images do not define a valid homomorphism
New description:
Error even though zero morphism is valid.
{{{sage: H= Hom(QQ, QQ)
sage: f=H(0)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_4.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8
-*-\\n" +
_support_.preparse_worksheet_cell(base64.b64decode("Zj1IKDAp"),globals())+"\\n");
execfile(os.path.abspath("___code___.py"))
File "", line 1, in <module>
File "/tmp/tmplncYUJ/___code___.py", line 3, in <module>
exec compile(u'f=H(_sage_const_0 )
File "", line 1, in <module>
File "/home/kamalakshya/sage/local/lib/python2.7/site-
packages/sage/rings/homset.py", line 184, in __call__
raise TypeError("images do not define a valid homomorphism")
TypeError: images do not define a valid homomorphism
}}}
--
--
Ticket URL: <http://trac.sagemath.org/ticket/16843#comment:1>
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.