Comment #33 on issue 1735 by [email protected]: Rename .func attribute
http://code.google.com/p/sympy/issues/detail?id=1735

What is the status of this? It's marked for the next release milestone, but I don't think there's any progress.

As I understand it, we are considering renaming .func to .head (with .type having already been ruled out -- right?). Per comments #23 and #25 .func isn't generic enough, as it doesn't really make sense for Tuples, Integrals, all sorts of quantum objects etc. At #14, Mateusz says he also prefers .head as then we can alias .tail to .args and have Mathematica syntax (which is an advantage, imho).

The question is, are those advantages worth the pain of a deprecation cycle? This could break a bunch of code (we could make a longer deprecation cycle, though).

We decided not to rename .args, because it's already used in vanilla Python and it makes sense. I do agree with comment #14, that we could add .tail as an alias to it, if that brings us closer to Mathematics syntax.

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to