[issue16038] ftplib: unlimited readline() from connection

A.M. Kuchling report at bugs.python.org
Sun Sep 15 18:50:46 CEST 2013


A.M. Kuchling added the comment:

For 2.6 I'll make a revised version of Giampaolo's patch that doesn't add a new exception class.  

Rationale: Adding a new exception class changes the API of the module, which we'd like to avoid.  If someone is writing 2.6 code that wants to catch this exception, they can't write "except ftplib.LineTooLong" because the name isn't present.  Instead they'll have to catch the parent Error exception class and analyze either its type or the exception message.  My conclusion is that adding the new class isn't actually useful.

(bwarsaw and I are at a mini-sprint looking at the 2.6.9 blockers, so we're looking at all of these 'unlimited readline' issues and will continue to remove new exceptions introduced by patches.)

----------
nosy: +akuchling

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16038>
_______________________________________


More information about the Python-bugs-list mailing list