[sqlalchemy] Re: all() or list() ?

2007-08-02 Thread Mike Orr
On 8/1/07, Gaetan de Menten [EMAIL PROTECTED] wrote: On 8/1/07, Alexandre CONRAD [EMAIL PROTECTED] wrote: I'm realizing that I've been using .list() to query objects. But all the examples in the docs talk about .all(). What's the difference ? Should I switch to .all() rather than

[sqlalchemy] Re: all() or list() ?

2007-08-01 Thread Gaetan de Menten
On 8/1/07, Alexandre CONRAD [EMAIL PROTECTED] wrote: I'm realizing that I've been using .list() to query objects. But all the examples in the docs talk about .all(). What's the difference ? Should I switch to .all() rather than .list() ? Will list be deprecated in 0.4 ? Exactly. list() is

[sqlalchemy] Re: all() or list() ?

2007-08-01 Thread Alexandre CONRAD
Gaetan de Menten wrote: What's the difference ? Should I switch to .all() rather than .list() ? Will list be deprecated in 0.4 ? Exactly. list() is the old way, all() is the 0.4 way. Thanks Gaetan, I'll clean up my code to be compliant with 0.4. Regards, -- Alexandre CONRAD