Hi Alperen, 

Why do you need a class at all rather than just a module with some functions?

Irit

On Tuesday, October 6, 2020, 01:38:21 PM GMT+1, Alperen Keleş <alpkeles99@gmail.com> wrote:


Hi,

Please pardon me if my idea is not making sense or already exists, I'm kind of new to developing in Python but I had this idea today and I wanted to share it with you.

I think a class type such as "@functionclass" may be helpful for creating functions intended to keep a list of methods in a scope. 

At the moment, I achieved this via writing "@classmethod" to all my functions but I think such a decorator might help clarify intent for the reader and ease the programmers' job.

My regards,
Alperen
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-leave@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/5FE6HAYMRR727HWRQXNQU6LWLCKFTBR2/
Code of Conduct: http://python.org/psf/codeofconduct/