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 Muhammad Toufeeq Ockards
Recipients Muhammad Toufeeq Ockards
Date 2016-06-07.08:24:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1465287876.51.0.228447119579.issue27247@psf.upfronthosting.co.za>
In-reply-to
Content
I was using the telnetlib on linux in python 2.7 and ran into error that executed line 320 of https://hg.python.org/cpython/file/2.7/Lib/telnetlib.py 

----------------------------------
319: except select.error as e:
320:    if e.errno == errno.EINTR:
------------------------------------

Inspecting select.error showed that it has no errno attribute.

I opened up a python2.7 idle session on my computer and entered the following. 


---------------------------------------------------------
>>> import select
>>> try:
...     raise select.error
... except Exception as e:
...     pass
... 
>>> e
error()
>>> dir(e)
['__class__', '__delattr__', '__dict__', '__doc__', '__format__', '__getattribute__', '__getitem__', '__getslice__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__setstate__', '__sizeof__', '__str__', '__subclasshook__', '__unicode__', '__weakref__', 'args', 'message']
>>> e.errno
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'error' object has no attribute 'errno'
>>> 
-------------------------------------------------------------
History
Date User Action Args
2016-06-07 08:24:36Muhammad Toufeeq Ockardssetrecipients: + Muhammad Toufeeq Ockards
2016-06-07 08:24:36Muhammad Toufeeq Ockardssetmessageid: <1465287876.51.0.228447119579.issue27247@psf.upfronthosting.co.za>
2016-06-07 08:24:36Muhammad Toufeeq Ockardslinkissue27247 messages
2016-06-07 08:24:35Muhammad Toufeeq Ockardscreate