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 -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/SL5ZKSQU6IOCOUY5SWJ6GGG7JKRY5B5U/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to