[docs] [issue12977] socket.socket.setblocking does not raise exception if no data available

Florian Ludwig report at bugs.python.org
Wed Sep 14 15:42:00 CEST 2011


New submission from Florian Ludwig <florian at leijuna.de>:

The documentation states:

> In non-blocking mode, if a recv() call doesn’t find any data, [...], a error exception is raised; [0]

Which is wrong. If no data is available recv() does not raise an exception but returns an empty string.

[0] http://docs.python.org/library/socket.html#socket.socket.setblocking

----------
assignee: docs at python
components: Documentation
messages: 144024
nosy: Florian.Ludwig, docs at python
priority: normal
severity: normal
status: open
title: socket.socket.setblocking does not raise exception if no data available
versions: Python 2.7

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


More information about the docs mailing list