Le 27/02/2019 à 15:29, Jeroen Demeyer a écrit :
On 2019-02-27 15:25, Daniel Krenn wrote:
Can I savely assume that S.an_element() of something S (within SageMath)
returns an element different from S.zero() if possible (meaning if there
are nonzero elements in S)?

Personally, I wouldn't assume anything.


Neither do I. The specification of an_element is supposed to be:

  Return an element if the parent is not empty and raises an
  EmptySetError otherwise

Vincent

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

Reply via email to