I think some idea like this might be worth proposing. the first idea that comes to my mind is to allow the name of a decorator to be an fstring using `@'...'` or `@"..."` syntax.
If, for example, you have `method_type = 'class'`, then you could decorate a method using `@'{method_type}method'`. _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/SL5ZKSQU6IOCOUY5SWJ6GGG7JKRY5B5U/ Code of Conduct: http://python.org/psf/codeofconduct/