On Monday, November 14, 2016 at 12:49:17 PM UTC-8, Paul Masson wrote:
>
> Doesn't the explicit alias to abs_symbolic put abs into the global name 
> space as a symbolic function? Why does an import of abs create more 
> problems than the alias? Is this a general Python problem or something 
> specific to SageMath?
>

No, it doesn't. The "abs" in the global namespace is just the generic 
python one: abs(a) dispatches to a.__abs__()

sage: class A(object):
....:     def __abs__(self):
....:         return "abs"
....:     
sage: a=A()
sage: abs(a)
'abs'
sage: sage.functions.all.abs_symbolic(a)
TypeError: cannot coerce arguments: no canonical coercion from <class 
'__main__.A'> to Symbolic Ring


-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to