This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ezio.melotti
Recipients eric.snow, ezio.melotti, python-dev, rhettinger
Date 2011-10-16.07:31:10
SpamBayes Score 0.0005458854
Marked as misclassified No
Message-id <1318750270.75.0.19800643355.issue13177@psf.upfronthosting.co.za>
In-reply-to
Content
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!
History
Date User Action Args
2011-10-16 07:31:10ezio.melottisetrecipients: + ezio.melotti, rhettinger, python-dev, eric.snow
2011-10-16 07:31:10ezio.melottisetmessageid: <1318750270.75.0.19800643355.issue13177@psf.upfronthosting.co.za>
2011-10-16 07:31:10ezio.melottilinkissue13177 messages
2011-10-16 07:31:10ezio.melotticreate