From 0071130d1541ca46d2a2363210703c38db6a42d5 Mon Sep 17 00:00:00 2001 From: DavidAyotte Date: Tue, 4 Jan 2022 09:27:57 -0500 Subject: [PATCH] minor changes for clearer error message --- src/sage/modular/modform/element.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sage/modular/modform/element.py b/src/sage/modular/modform/element.py index 15d4f7ba726..86d2d7760b1 100644 --- a/src/sage/modular/modform/element.py +++ b/src/sage/modular/modform/element.py @@ -414,7 +414,8 @@ def coefficient(self, n): sage: f.coefficient(4) -1472 """ - return self.q_expansion(n+1)[Integer(n)] + n = ZZ(n) + return self.q_expansion(n+1)[n] def padded_list(self, n): """