Op 8/12/2025 om 20:43 schreef Jason Friedman via Python-list:
One practice I follow is declaring strings, _especially_ those used more
than once, at the top:
In a case like this, an Enum could probably be even more fitting (or in this case more specifically a StrEnum). See https://docs.python.org/3.13/library/enum.html#enum.StrEnum

--
"The saddest aspect of life right now is that science gathers knowledge
faster than society gathers wisdom."
        -- Isaac Asimov


--
https://mail.python.org/mailman3//lists/python-list.python.org

Reply via email to