[issue20328] mailbox:

R. David Murray report at bugs.python.org
Tue Jan 21 16:08:04 CET 2014


R. David Murray added the comment:

Conceptually the problem with this is that if you use the object to delete the folder, you now have an object with no folder...that is,
an invalid object.  Do we have any other stdlib examples of objects with a 'delete()' method...looks like bdb has a deleteMe on breakpoint objects, but it isn't clear that it tries to deal with what happens if a breakpoint object that has been deleted is accessed again.  There are also some in idlelib/tk, which I haven't looked at.

So, I guess the issue is to work out what the semantics of the object would be if delete has been called, and make sure it actually makes sense to have a delete method.

----------
components: +email
nosy: +barry, r.david.murray
versions: +Python 3.5 -Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20328>
_______________________________________


More information about the Python-bugs-list mailing list