I was just surprised by the undocumented behaviour of Symbol:

def __call__(self, *args):
    from .function import Function
    return Function(self.name)(*args)

this is bad style in my humble opinion. The implicit creation of another 
type (Function) is confusing
and very far from the zen of Python (explicit is bettter than implicit). 
Any it prevents duck-typing checks
using ``callable``. Do people find this useful? I think it should be 
discouraged and even deprecated.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" 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 https://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/7216aeb3-4255-473d-98eb-7de5d1634c68%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to