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

Commit

Permalink
Add comment explaining why we check against a list.
Browse files Browse the repository at this point in the history
  • Loading branch information
mstreng committed Mar 31, 2022
1 parent b991973 commit 8f12947
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sage/schemes/plane_conics/con_number_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ def has_rational_point(self, point=False, obstruction=False,
return False, self._local_obstruction
else:
return False
# `_(in)finite_obstructions` is `None` if the cache is empty,
# so we explicitly check against a list:
if (not point) and self._finite_obstructions == [] and \
self._infinite_obstructions == []:
# list of local obstructions is computed and empty, return True
Expand Down

0 comments on commit 8f12947

Please sign in to comment.