Updates:
        Labels: EasyToFix

Comment #1 on issue 1740 by [email protected]: prime(symbol('x')) never returns
http://code.google.com/p/sympy/issues/detail?id=1740

change the assertion from assert n > 0 to an if:
    if int(n) <= 0 or int(n) != n:
        raise ValueError('n must be a positive integer.')

Taking int of a symbol will raise a TypeError and alert the user to the problem and also stop the code from not returning.

--
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