[sqlalchemy] Is using column_property preferred over hybrid property in some circumstances?

2014-06-21 Thread Bao Niu
The documentation regarding column_property and hybrid property says both methods are intended for linking a sql expression to an attribute, which is highly useful. But it is not obvious to junior users which one is preferred. Generally speaking under what circumstances I should use one or the

Re: [sqlalchemy] Is using column_property preferred over hybrid property in some circumstances?

2014-06-21 Thread Mike Bayer
On 6/21/14, 4:00 PM, Bao Niu wrote: The documentation regarding column_property and hybrid property says both methods are intended for linking a sql expression to an attribute, which is highly useful. But it is not obvious to junior users which one is preferred. Heh.Well, one is much

Re: [sqlalchemy] Is using column_property preferred over hybrid property in some circumstances?

2014-06-21 Thread Bao Niu
Agreed, very funny comment Mike, and a good one:) Thanks. On Sat, Jun 21, 2014 at 2:52 PM, Mike Bayer mike...@zzzcomputing.com wrote: On 6/21/14, 4:00 PM, Bao Niu wrote: The documentation regarding column_property and hybrid property says both methods are intended for linking a sql