Not quite, the temporary `_constant_names` string still exists, it' just that the string and list-of-tuples now have distinct variable names.     Another option would to just create a small helper function to handle the `__doc__`-formatting, which honestly doesn't like a terrible idea all things considered.