[Zope3-dev] Should containers tell you if they accept empty string keys?
Jim Fulton
jim@zope.com
Mon, 18 Nov 2002 14:43:21 -0500
Guido van Rossum wrote:
> Slightly off-topic (and perhaps misinformed): when setObject() returns
> the key it generates, can you use that key to access the object?
Yes.
> In
> particular, if you pass the returned key to another call to
> setObject(), will it overwrite the object whose setObject() call
> returned that key, or will it generate a new key again???
If the container doesn't ignore the key, it will generate a
DuplicationError.
> I'm worrying about idempotency here.
You wouldn't expect setObject to be idempotent would you?
Jim
--
Jim Fulton mailto:jim@zope.com Python Powered!
CTO (888) 344-4332 http://www.python.org
Zope Corporation http://www.zope.com http://www.zope.org