[ZODB-Dev] Typechecking oid in getitem

Tim Peters tim at zope.com
Mon May 19 13:43:40 EDT 2003


[Jeremy Hylton]
> In ZODB4, __getitem__ is renamed get.  So this sort of error won't be a
> problem.

Excellent.  Then dict(Connection) will raise a "iteration over non-sequence"
TypeError at once.

> I can't think of any good reason to try to make a connection look like
> a mapping for this one particular case.  The number of reasons
> not to do this keeps increasing :-).

Fully agreed.




More information about the ZODB-Dev mailing list