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 serhiy.storchaka
Recipients giampaolo.rodola, python-dev, serhiy.storchaka
Date 2012-12-17.19:34:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1355772867.88.0.29222941877.issue16646@psf.upfronthosting.co.za>
In-reply-to
Content
I doubt about the committed variant of patch. Note that both my original patch and socket.create_connection() use intermediate variable for catching an exception. This is done deliberately.

Example:

>>> err = None
>>> try: raise ValueError
... except ValueError as err: pass
... 
>>> err
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'err' is not defined
History
Date User Action Args
2012-12-17 19:34:28serhiy.storchakasetrecipients: + serhiy.storchaka, giampaolo.rodola, python-dev
2012-12-17 19:34:27serhiy.storchakasetmessageid: <1355772867.88.0.29222941877.issue16646@psf.upfronthosting.co.za>
2012-12-17 19:34:27serhiy.storchakalinkissue16646 messages
2012-12-17 19:34:26serhiy.storchakacreate