What about creating a `is_prime_integer` function? Explicit is better than implicit, and in that case we leave no ambiguity in the mathematical sense, but also cover the use case of the casual user.
What i definitely don't want is `.is_prime()` return `True` when it is applied to an element that is not a prime in its parent, even if it can be naturally mapped to a prime integer (that includes the case of rationals, but also more cases: polynomials, number fields, p-adics...) -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.