Re: How can i call array_length to get the length of array object?
On Sat, Jun 23, 2012 at 8:23 PM, gmspro <firstname.lastname@example.org> wrote:
> I'm trying to call this function, http://hg.python.org/cpython/file/3b...ymodule.c#l657
> Is that possible to call that function?
> I know it's possible to do:
You call it just like that. array_length is the C implementation of
__len__ for arrays.
> Doesn't it call this :
> instead of this:
Yes, and builtin_len calls PyObject_Size, which in turn calls the
object's sq_length method, which is defined to be array_length for
|All times are GMT. The time now is 06:31 PM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.