Anthony Lenton anthony.len...@canonical.com added the comment:
Probably old news, but this also affects 2.5.4.
--
nosy: +elachuni
versions: +Python 2.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue839159
Anthony Lenton [EMAIL PROTECTED] added the comment:
It's probably just a typo from copying from an editor, but there is a
bug in the workaround. It should be:
maxRead = 100
class MySSL (imaplib.IMAP4_SSL):
def read (self, n):
#print ..Attempting to read %d bytes % n
if n
Anthony Lenton [EMAIL PROTECTED] added the comment:
I confirm that the bug occurs with Python 2.5.1 on Windows XP. Also,
anglocelt's fix worked fine for me.
--
nosy: +elachuni
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1441530
Anthony Lenton [EMAIL PROTECTED] added the comment:
This doesn't happen to me with 2.6 compiled from HEAD, or with 2.5.2
shipped with Ubuntu Hardy.
In both cases the output is:
Contents of text box: '123456789\n123456789\n'
--
nosy: +elachuni
Anthony Lenton [EMAIL PROTECTED] added the comment:
In http://bugs.python.org/issue754016 there's already a discussion about
this.
The RFC that urlparse is following (rfc 1808) requires the net_loc
component to start with // even if the scheme component is missing,
which is why urlparse(www,http
Changes by Anthony Lenton [EMAIL PROTECTED]:
--
nosy: +facundobatista
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2569
___
___
Python-bugs-list
Anthony Lenton [EMAIL PROTECTED] added the comment:
I agree with facundobatista that the patch is bad, but for a different
reason: it now breaks with:
import urlparse
urlparse.urlparse ('http:')
Traceback (most recent call last):
File stdin, line 1, in module
File /home/anthony/svn
Anthony Lenton [EMAIL PROTECTED] added the comment:
I don't really think the MIMEBase class is supposed to be used like
this, or at all: it behaves more like a Multipart message in that it
expects to carry a list of MIMEBase objects as a payload (not a string!)
though it doesn't define
Anthony Lenton added the comment:
Attached is an diff against trunk that adds philfr's suggesitions. I've
also added a test file for testing url parsing, so's these things stay
fixed. Updated Misc/NEWS. No doc or functionallity modified.
--
nosy: +elachuni, facundobatista
Added file