Another argument against a public method name is that e is implemented as exp(1) and not as a named constant under the hood:
sage: e.is_constant() False sage: pi.is_constant() True On Saturday, January 9, 2016 at 10:03:04 AM UTC+1, Ralf Stephan wrote: > > It is not used by users and developers have isinstance. > But there is no common base class for named constants, though it might be good to have one: sage: type(pi).__class__.__mro__ (<type 'sage.misc.inherit_comparison.InheritComparisonMetaclass'>, <type 'type'>, <type 'object'>) -- 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.