all() or list() ?

4 views
Skip to first unread message

Alexandre CONRAD

unread,
Aug 1, 2007, 6:42:55 AM8/1/07
to sqlal...@googlegroups.com
Hello,

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 ?

Regards,
--
Alexandre CONRAD

Gaetan de Menten

unread,
Aug 1, 2007, 6:49:17 AM8/1/07
to sqlal...@googlegroups.com
On 8/1/07, Alexandre CONRAD <aconr...@magic.fr> 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 the old way, all() is the 0.4 way.

--
Gaëtan de Menten
http://openhex.org

Alexandre CONRAD

unread,
Aug 1, 2007, 8:37:05 AM8/1/07
to sqlal...@googlegroups.com
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

Mike Orr

unread,
Aug 2, 2007, 5:08:22 PM8/2/07
to sqlal...@googlegroups.com
On 8/1/07, Gaetan de Menten <gdem...@gmail.com> wrote:
>
> On 8/1/07, Alexandre CONRAD <aconr...@magic.fr> 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 the old way, all() is the 0.4 way.

.list() is the "old new" way, or short-lived new way. .all() is the
"real" new way.

--
Mike Orr <slugg...@gmail.com>

Reply all
Reply to author
Forward
0 new messages