473,287 Members | 1,866 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,287 software developers and data experts.

Bug in ssl-object library reference page or in ssl-object code?

According to http://docs.python.org/lib/ssl-objects.html

17.2.2 SSL Objects

SSL objects have the following methods.

read([n])

If n is provided, read n bytes from the SSL connection,
otherwise read until EOF. The return value is a string of
the bytes read.

The behavior I observer when n is not provided doesn't agree
with the description. When I call read(), it appears that I
get whatever data is currently available. It does not read
until EOF. This seems to agree with the comment on the
"example" page:

http://docs.python.org/lib/socket-example.html

# Read a chunk of data. Will not necessarily
# read all the data returned by the server.
data = ssl_sock.read()

If read() did indeed read until EOF, then it would always
read all of the data returned by the server.

Is this a bug in the doc or in the code?

--
Grant Edwards grante Yow! How do I get HOME?
at
visi.com
Jun 27 '08 #1
0 644

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: aurora | last post by:
Sometimes it is rather frustrated to use the Python Library Reference. It seems each section is hand crafted and it is up to the author decide the organization and coverage. For example the os...
25
by: Xah Lee | last post by:
Python Doc Problem Example: gzip Xah Lee, 20050831 Today i need to use Python to compress/decompress gzip files. Since i've read the official Python tutorial 8 months ago, have spent 30...
2
by: Zippy | last post by:
Some months ago, we requested help from this newsgroup on how to replace the library reference of a database with another library reference, prior to creating an MDE. I got the following answer...
1
by: hippo | last post by:
I am having trouble using the InDesign 2 library in VB net. I make a new exe project and open the project>add reference. I then browse to the reference and add it. However it shows up in the...
10
by: bobueland | last post by:
The "Python LIbrary Reference" at http://docs.python.org/lib/contents.html seems to be an important document. I have two questions Q1. How do you search inside "Python LibraryReference" ? Does...
0
by: Skip Montanaro | last post by:
I broke down and wrote a dynamic global module index for the Python library reference manual last night using Myghty. It's something I've wanted for quite awhile and as I'm just learning to use...
8
by: Metaosp | last post by:
Is there any good on-line reference manual for the latest standard c++ library? In the Java world the library documents are so readily available that makes coding a lot easier, I really wish to...
0
by: MiniMe | last post by:
Microsoft .NET Framework 1.1 Class Library Reference Volumes 1-4 are for sale These books have never been used, but they are not sealed. There is some minor shelf wear due to simply handling the...
1
by: m.n.summerfield | last post by:
Although a fan of Python, I find the Python Library Reference page (lib.html) very inconvenient because of its book contents-like layout. Also, some things that seem to me to belong together, such...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.