Re: Rats! vararg assignments don't work



samwyse <dejanews@xxxxxxxxx> wrote:
...
Actually, I'm surprised that the PEP does as much as it does. If tuples
are implemented as S-expressions, then something like this:

Tuples are implemented as compact arrays of pointer-to-PyObject (so are
lists, BTW). So, for example, a 10-items tuple takes 40 bytes (plus a
small overhead for the header) on a 32-bit build, not 80 as it would if
implemented as a linked list of (pointer-to-object, pointer-to-next)
pairs; addressing sometuple[N] is O(1), NOT O(N); etc, etc.


Alex
.



Relevant Pages

  • Re: Linux 2.6.9-rc2 (compile stats)
    ... janitors like myself just got a whole bunch of work thrown our way... ... Btw, please don't trim CC lists on linux-kernel. ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • Re: how to organize my main file ?
    ... pereges wrote: ... the objects(Its not just a simple 'free' call btw, there are lists ... within objects which must be destroyed first) ...
    (comp.lang.c)
  • Re: Complaints about using this list...
    ... Filter on The Message HEader or Subject. ... Actually there is a better way to filter for lists, ... that don't have the list email address in the "sender" field, ... BTW: I never would have replied to this if I had seen it in the digest. ...
    (Fedora)
  • Re: FrontPage extensions on an Apache server
    ... > BTW, see this article about Top Ten Lists. ... > the usage reports and top ten list on anything other than IIS. ... Apache Server on RedHat Linux ...
    (microsoft.public.frontpage.client)
  • Re: [OT] Re: help with debian
    ... Reply-to-list for lists or simple reply for normal mail. ... Also btw, I read the list via a mail to news gateway which is why I'm ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)