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 gvanrossum
Recipients christian.heimes, gvanrossum, janssen
Date 2007-12-06.19:17:19
SpamBayes Score 0.0
Marked as misclassified No
Message-id <1196968639.72.0.590546446918.issue1469@psf.upfronthosting.co.za>
In-reply-to
Content
I'm giving up on this for now.  There are other weird bugs in the code,
e.g. this simple piece of code fails:

>>> x = urllib.urlopen("https://mail.google.com").read()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/google/home/guido/python/py3kd/Lib/io.py", line 463,
in read
    return self.readall()
  File "/usr/local/google/home/guido/python/py3kd/Lib/io.py", line 473,
in readall
    data = self.read(DEFAULT_BUFFER_SIZE)
  File "/usr/local/google/home/guido/python/py3kd/Lib/io.py", line 466,
in read
    del b[n:]
TypeError: slice indices must be integers or None or have an __index__
method
[64813 refs]
>>>

The debugger tells me that 'n' contains a bytes object instead of an
int.  This appears due to the confused signature of _sslobj.read()
(which can behave as either read() or readinto()).  Its docstring is
wrong too.  We'll deal with this after 3.0a2 is released.
History
Date User Action Args
2009-03-09 14:36:43georg.brandlsetspambayes_score: 0.672365 -> 0.0
2007-12-06 19:17:19gvanrossumsetspambayes_score: 0.672365 -> 0.672365
recipients: + gvanrossum, janssen, christian.heimes
2007-12-06 19:17:19gvanrossumsetspambayes_score: 0.672365 -> 0.672365
messageid: <1196968639.72.0.590546446918.issue1469@psf.upfronthosting.co.za>
2007-12-06 19:17:19gvanrossumlinkissue1469 messages
2007-12-06 19:17:19gvanrossumcreate