[sage-devel] Re: inconsistent output from is_*() functions

2009-04-29 Thread William Stein
On Wed, Apr 29, 2009 at 8:43 AM, John Cremona john.crem...@gmail.com wrote: Example 1: sage: R = Zmod(101) sage: R.is_field() True sage: R.is_prime_field() False as compared to sage: F = GF(101) sage: F.is_field() True sage: F.is_prime_field() True The only one of these I

[sage-devel] Re: inconsistent output from is_*() functions

2009-04-29 Thread John Cremona
ok. the is_prime_field() is simpler: sage: search_def(is_prime_field) rings/finite_field_prime_modn.py:def is_prime_field(self): [just returns True] rings/rational_field.py:def is_prime_field(self): [ditto] rings/ring.pyx:def is_prime_field(self): This one is the