Simon King wrote: > That makes sense to me. > Thus I now think, z.is_prime() should roughly work like this: > def is_prime(self): > ...
What about keeping the is_prime() *method* unchanged (except perhaps for adding an optional warning in the default implementation for field elements), and restricting the is_prime() *function* to integers-- perhaps allowing it to automatically convert its argument, after a deprecation period at least? -- Marc -- 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.