[Python-Dev] defaultdict proposal round three

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Feb 22 09:23:10 CET 2006


Steve Holden wrote:

> Given that the default entries behind the non-existent keys don't 
> actually exist, something like "virtual_dict" might be appropriate.

No, that would suggest to me something like
a wrapper object that delegates most of the
mapping protocol to something else. That's
even less like what we're discussing.

In our case the default values are only
virtual until you use them, upon which they
become real. Sort of like a wave function
collapse... hmmm... I suppose 'heisendict'
wouldn't fly, would it?

--
Greg


More information about the Python-Dev mailing list