Re: [sympy] PROPOSAL: ban explicit class constructors in SymPy

2019-11-09 Thread Oscar Benjamin
I do plan to do this after the next release. There are some details to work through in making something that works for all of Basic. The Function model with eval works well but I'm not sure that it would work for everything else. I think that we need to move the logic that is currently in __new__

Re: [sympy] PROPOSAL: ban explicit class constructors in SymPy

2019-11-08 Thread Aaron Meurer
This is related to the discussion here https://github.com/sympy/sympy/issues/17280. I like the idea. The implementation of __new__ is often quite confusing, and it isn't always clear if you are doing it correctly. That's not to mention that most people aren't used to using __new__ in Python. We