R. David Murray <rdmur...@bitdance.com> added the comment: Well, under the (C) hood, it is in fact the same method, it just takes a variable number of arguments (and ignores them, in the __exit__ case). The fact that the arguments are rejected in the 'release' case is because of how the C function is defined as a Python method using the C API. So the result of the boolean test is more accurate than a False report would be, although not precise.
I don't *think* there is any bug to fix here. Do you have a use case that this impacts? ---------- nosy: +r.david.murray versions: +Python 2.7, Python 3.2, Python 3.3 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11194> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com