[Python-Dev] defaultdict proposal round three (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Wed Feb 22 09:23:10 CET 2006
- Previous message: [Python-Dev] defaultdict proposal round three
- Next message: [Python-Dev] defaultdict proposal round three
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Steve Holden wrote:
Given that the default entries behind the non-existent keys don't actually exist, something like "virtualdict" 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
- Previous message: [Python-Dev] defaultdict proposal round three
- Next message: [Python-Dev] defaultdict proposal round three
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]