|
Re: Re: list.len(): msg#00279python.c++
--- 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> |
|---|---|---|
| Previous by Date: | Re: Re: using BOOST_PYTHON_STATIC_LIB: 00279, Rene Rivera |
|---|---|
| Next by Date: | Re: Re: using BOOST_PYTHON_STATIC_LIB: 00279, Rene Rivera |
| Previous by Thread: | Re: list.len()i: 00279, David Abrahams |
| Next by Thread: | Re: list.len(): 00279, David Abrahams |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |