Re: [sympy] Design of sympy.Symbol

2016-01-26 Thread Sartaj Singh
I agree. This could also introduce subtle bugs. Mixing functions and symbols doesn't look good. -- 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

Re: [sympy] Design of sympy.Symbol

2016-01-26 Thread Aaron Meurer
Yeah, there's an open issue for it https://github.com/sympy/sympy/issues/3539. It's there so that sympify parsing of things like 'f(x)' works. Aaron Meurer On Tue, Jan 26, 2016 at 8:18 AM, Sartaj Singh wrote: > I agree. This could also introduce subtle bugs. Mixing

[sympy] Design of sympy.Symbol

2016-01-26 Thread Björn Dahlgren
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