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 jaraco
Recipients docs@python, jaraco, orsenthil, petri.lehtinen
Date 2011-11-07.21:38:13
SpamBayes Score 1.4453092e-06
Marked as misclassified No
Message-id <1320701894.15.0.154419635988.issue13211@psf.upfronthosting.co.za>
In-reply-to
Content
My initial instinct was to agree - the status code is useful. However, in looking at the FTP code, it sometimes just sets other objects (socket.error for example) as the 'reason'. The docs say 'reason' is a string or another exception.

I'm tempted to leave it as is. This fix is mainly to provide a reasonable value for .reason. The __str__ and .code are already exposed, so to create a reason with a code would create yet another string representation of the error which is different from every other representation already present.
History
Date User Action Args
2011-11-07 21:38:14jaracosetrecipients: + jaraco, orsenthil, docs@python, petri.lehtinen
2011-11-07 21:38:14jaracosetmessageid: <1320701894.15.0.154419635988.issue13211@psf.upfronthosting.co.za>
2011-11-07 21:38:13jaracolinkissue13211 messages
2011-11-07 21:38:13jaracocreate