As the author of #40709 does not restore the removed code, I prepared a PR https://github.com/sagemath/sage/pull/40843
which restores the removed code but retain the improvement made by #40709. Please review. -- 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 [email protected]. To view this discussion visit https://groups.google.com/d/msgid/sage-devel/bbacb69c-bc7d-49a1-9647-9fc299e7441fn%40googlegroups.com.
