Re: [sqlalchemy] How can I programmatically give a hybrid_property its name?

2016-09-29 Thread Simon King
On Thu, Sep 29, 2016 at 6:32 AM, Jinghui Niu wrote: > The documentation shows that hybrid_property should used as a decorator, > like: > @hybrid_property > def my_property(self): > pass > > > What if I wanted to give this hybrid property a name by referring a variable >

[sqlalchemy] How can I programmatically give a hybrid_property its name?

2016-09-28 Thread Jinghui Niu
The documentation shows that hybrid_property should used as a decorator, like: @hybrid_property def my_property(self): pass What if I wanted to give this hybrid property a name by referring a variable in runtime? Is this allowed? Thanks. -- You received this message because you are