Comment #112 on issue 1694 by asmeurer: solve has many issues with fractions
http://code.google.com/p/sympy/issues/detail?id=1694

"Then other errors occur (TypeError: object of type 'Integral' has no len())."

Yeah, I noticed after I posted that comment that it was trying to do len on a Basic expression, which doesn't work (did it used to?).

"The Basic.count_ops could never be called with an iterable since it's a method of basic."

Duh!  Ignore my comment on that.

"Even though there has been some discussion of doing these docstrings, I don't know the best way. If someone does help(count_ops) they are going to see the function's version. I put a note in Basic about seeing function's examples with iterables."

I like having only one full docstring, and the rest just saying "See the docstring of _." That way, you only have to worry about fixing one docstring whenever you modify a docstring. It isn't too hard for someone to say, "Oh, I guess I need to do help(count_ops) instead" whenever they do help(Basic.count_ops). The only better alternative would be to do something like:

func.__doc__ = other_func.__doc__

which seems to work, at least in the interpreter.

I am +1 except for this.

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

Reply via email to