Re: [sqlalchemy] hybrid_property vs. hybrid_method, other than the latter can take arguments?

2016-08-24 Thread Simon King
On Wed, Aug 24, 2016 at 2:55 AM, Jinghui Niu wrote: > Hi, I wonder if there is any recommendation or best practice on choosing > between > hybrid_property > > and > hybrid_method > , > other than they hybrid_method can take arguments? If I use the hybrid_method > only

[sqlalchemy] hybrid_property vs. hybrid_method, other than the latter can take arguments?

2016-08-23 Thread Jinghui Niu
Hi, I wonder if there is any recommendation or best practice on choosing between hybrid_property and hybrid_method , other than they hybrid_method can take arguments? If I use the hybrid_method only throughout, without giving it a argument more than self, doesn't it equal to using