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.

classification
Title: asyncore - api doesn't provide doneevent
Type: enhancement Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: gvanrossum, josiahcarlson, loewis, natsukashi, tim.peters
Priority: normal Keywords:

Created on 2001-12-10 06:00 by natsukashi, last changed 2022-04-10 16:04 by admin. This issue is now closed.

Messages (8)
msg53374 - (view) Author: Joseph Wayne Norton (natsukashi) Date: 2001-12-10 06:00
The asyncore api doesn't provide a way to invoke the
"loop" method but to only perform one iteration. 

Since the loop method does some selection of which poll
method to call before entering the while loop, I have
to duplicate the same behavior in my own
"dooneiteration" method.

I would like some functionality similar to the Tk
interp model where one can enter the mainloop or simply
do one event.  

regards,

- joe n.

msg53375 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2001-12-10 14:47
Logged In: YES 
user_id=6380

If you can supply a decent patch, we'd happily apply it to
Python 2.3.
msg53376 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2001-12-10 17:15
Logged In: YES 
user_id=31435

Moved to the Feature Request tracker.
msg53377 - (view) Author: Tim Peters (tim.peters) * (Python committer) Date: 2001-12-10 17:41
Logged In: YES 
user_id=31435

The Feature Requests tracker didn't have any Categories 
defined.  I defined the same ones as the Bug tracker has, 
and purt this report in category "Python Library".
msg53378 - (view) Author: Josiah Carlson (josiahcarlson) * (Python triager) Date: 2004-05-20 06:28
Logged In: YES 
user_id=341410

I've implemented and submitted a patch to implement the
desired functionality in asyncore.loop via a 4th keyword
argument called 'count'.

The patch to current CVS can be found here:
python.org/sf/957240
msg53379 - (view) Author: Josiah Carlson (josiahcarlson) * (Python triager) Date: 2004-05-20 06:45
Logged In: YES 
user_id=341410

I have posted the patch to implement the desired
functionality.  SF patch #957240 ; python.org/sf/957240
msg53380 - (view) Author: Josiah Carlson (josiahcarlson) * (Python triager) Date: 2004-05-20 07:19
Logged In: YES 
user_id=341410

Sorry about the double post, I was distracted by pretty
colors or something.
msg53381 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2004-06-03 09:19
Logged In: YES 
user_id=21627

Thanks to the patch, the feature will be available in Python
2.4.
History
Date User Action Args
2022-04-10 16:04:44adminsetgithub: 35706
2001-12-10 06:00:48natsukashicreate