5 Aug
2020
5 Aug
'20
6:40 p.m.
On 5/08/20 9:13 pm, Serhiy Storchaka wrote:
the code can be written as
class Neuron: activation = linear_activation(activation)
I do not see reasons to introduce special syntax for this very specific code.
A considerable number of moons ago, I suggested that @my_property fred = 42 should expand to fred = my_property("fred", 42) The point being to give the descriptor access to the name of the attribute, without having to repeat yourself. -- Greg