logo       

Re: Re: list.len(): msg#00279

python.c++

Subject: Re: Re: list.len()

--- David Abrahams <dave@xxxxxxxxxxxxxxxxxxxx> wrote:
> We should have it, but it should be a namespace-scope function, not a
> method. len(some_list) and len(some_tuple) should work equally well.
> There are actually a whole suite of these functions which ought to be
> in the library, added to namespace boost::python::api (see
> boost/python/object_protocol.hpp for some examples). Patches are
> welcome, if they include user documentation and tests!

We have len() already. Look for "api_placeholder" and "len" in
boost/libs/python/src/object/pickle_support.cpp

Ralf


__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise