Ezio Melotti <ezio.melo...@gmail.com> added the comment: My comment was referring to double try/except suggested by Eric. Indeed the if/else might lead to a race condition, and that's a good reason to avoid LBYL -- even if on average calling hash() twice might be faster. I'm happy with the fix you committed, thanks!
---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13177> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com