object as bunch

Alex Martelli aleaxit at yahoo.com
Tue Oct 12 03:17:08 EDT 2004


Steven Bethard <steven.bethard at gmail.com> wrote:

> Alex Martelli <aleaxit <at> yahoo.com> writes:
> > 
> > If an object() could be used as a Bunch I do think it would be
> > reasonably common.  But it can't, so I insist that its role as
> > sentinel/placeholder is the only possibility.
> 
> Anyone know what the design goal was that caused object not to be written to
> be used as a Bunch?

I believe the point was to not weigh down each instance of object with
it own dictionary, since a dict takes quite a few bytes of RAM.  I could
well be wrong, though.


Alex





More information about the Python-list mailing list