<div id="comment:0"></div> This eliminates an import-time dependency on `sage.misc.misc`. (for #29865) CC: @fchapoton @kiwifb @embray @tscrim Component: **refactoring** Author: **Matthias Koeppe** Branch/Commit: **[`ce63cf5`](https://github.com/sagemath/sagetrac-mirror/commit/ce63cf5c6802ee61f4934b4834de0951ad6f7cff)** Reviewer: **François Bissey** _Issue created by migration from https://trac.sagemath.org/ticket/31332_