Serhiy Storchaka added the comment:

Additional checks can slowdown the code. It doesn't matter in some operations, 
but not on __len__, __contains__, etc. EAFP approach is to catch AttributeError 
and raise appropriate dbm.dumb.error exception.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19385>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to