[Python-Dev] defaultdict proposal round three (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Tue Feb 21 00:19:36 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 ]
Guido van Rossum wrote:
I see two alternatives.
Have you considered the third alternative that's been mentioned -- a wrapper?
The issue of contains etc. could be sidestepped by not giving the wrapper a contains method at all. If you want to do an 'in' test you do it on the underlying dict, and then the semantics are clear.
Greg
- Previous message: [Python-Dev] defaultdict proposal round three
- Next message: [Python-Dev] defaultdict proposal round three
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]