Need a metavalue singleton kinda thingy as a reserved key...
holger krekel
pyth at devel.trillke.net
Sun Aug 11 10:46:15 EDT 2002
Noah wrote:
> I have a class where you can add values to a dictionary.
> I want to have a special meta key that I can use to reserve a spot
> in the dictionary. The problem is that the keys in the dictionary
> can be almost anything including None, so I can't use None as my
> reserved value. Plus I may want to defined more than one reserved key.
> Is there a smarter way to create meta values to denote reserved keys?
Would you mind describing the problem where this is supposed to be
the solution for?
holger
More information about the Python-list
mailing list