On Wed, Aug 5, 2020 at 8:01 PM <redrad...@gmail.com> wrote: > > It could work if we extend syntax like this: > ```python > class Neuron: > activation # By default creates activation with None value\
Why not just "activation = None"? > activation = linear_activation(activation) > ``` > and then we could apply as may decorators as needed: > ```python > class Neuron: > activation # By default creates activation with None value > activation = linear_activation(activation) > activation = softmax_activation(weights=["w0", > "w1"])(linear_activation(activation)) > ``` You can already do this. ChrisA _______________________________________________ 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/GPHRQPC53OCTUQ4LDPXSW6NMVCRCNTAE/ Code of Conduct: http://python.org/psf/codeofconduct/