Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Set_object.is_finite: Check category
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Aug 19, 2022
1 parent d711a61 commit e63e4f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sage/sets/set.py
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,10 @@ def is_finite(self):
sage: Set([1,'a',ZZ]).is_finite()
True
"""
if self in Sets().Finite():
return True
if self in Sets().Infinite():
return False
obj = self.__object
try:
is_finite = obj.is_finite
Expand Down

0 comments on commit e63e4f0

Please sign in to comment.