I could imagine that such a reference would be valuable as an additional index to our reference manual.
I would suggest to look into implementing it as a Sphinx extension (after checking whether something like this already exists). Sage already uses a custom version of the Sphinx autodoc extension: https://github.com/sagemath/sage/blob/develop/src/sage_docbuild/ext/sage_autodoc.py On Monday, May 6, 2024 at 2:21:24 AM UTC-7 Martin R wrote: > Dear all! > > I thought it may make sense to have an easy way to find the names of all > optional (i.e., keyword) arguments used in sage, ideally as a dictionary > mapping names to the methods where they are used. > > So, for example, one entry might be (schematically) > > (' rank', [random_subspaces_matrix, BasisExchangeMatroid.__init__, > Lfunction.find_zeros_via_N, mult_schubert, BasisMatroid.__init__, > TrivialBundle, SheafLibrary.trivial_bundle]) > > I would find that useful to make informed decisions about how to name my > keyword arguments. > > Has anybody done this yet? > > Note that there is a very short list of such "Common function keyword > arguments" at > > > https://doc.sagemath.org/html/en/developer/coding_basics.html#miscellaneous-minor-things > > I realize that this is a bit of bikeshedding. With what I have I found > only few potential mergers (file and filename; vars and variables, verify > and check), but quite a lot of rather obscure names (infamous example: > desolvers.py). > > Best wishes, > > Martin > -- 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 sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/70ad94c3-0da2-49d3-b438-ad4b64c5b816n%40googlegroups.com.