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.

Title: asyncore doc issue
Type: Stage:
Components: Versions: Python 3.0, Python 3.1, Python 2.7, Python 2.6, Python 2.5
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, giampaolo.rodola, josiah.carlson, josiahcarlson
Priority: normal Keywords:

Created on 2009-03-02 18:46 by giampaolo.rodola, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (5)
msg83033 - (view) Author: Giampaolo Rodola' (giampaolo.rodola) * (Python committer) Date: 2009-03-02 18:46
About asyncore.loop()'s count parameter:

> The count parameter defaults to None, resulting in the loop 
> terminating only when all channels have been closed

This is incorrect and it's not what count parameter actually does.
I'd come up with a patch but I'm sure a native English speaker can do a
lot better than me.
msg83361 - (view) Author: Josiah Carlson (josiahcarlson) * (Python triager) Date: 2009-03-09 07:39
Actually, that's exactly what it does.  If the count is missing, it 
defaults to None.  The code that is executed is exactly:

    if count is None:
        while map:
            poll_fun(timeout, map)

It will loop until the map is empty.
msg83362 - (view) Author: Josiah Carlson (josiahcarlson) * (Python triager) Date: 2009-03-09 07:42
Well...the loop can also die if an uncaptured exception is raised, but 
I'm not sure that is necessary to spell out explicitly.
msg83377 - (view) Author: Giampaolo Rodola' (giampaolo.rodola) * (Python committer) Date: 2009-03-09 13:26
You're right, my fault.
msg85516 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2009-04-05 15:18
Closing as "works for me".
Date User Action Args
2022-04-11 14:56:46adminsetgithub: 49656
2009-04-05 15:18:38georg.brandlsetstatus: open -> closed

nosy: + georg.brandl
messages: + msg85516

resolution: works for me
2009-03-09 13:26:37giampaolo.rodolasetmessages: + msg83377
2009-03-09 07:42:15josiahcarlsonsetmessages: + msg83362
2009-03-09 07:39:14josiahcarlsonsetmessages: + msg83361
2009-03-02 18:46:26giampaolo.rodolacreate