On 21/04/20 8:29 am, Eric Snow wrote:
* Would a low-level channel implementation based on callbacks or locks be better (simpler, faster, etc.) than one based on buffering?
Depends on what you mean by "better". Callbacks are more versatile; a buffered channel just does buffering, but with callbacks you can do other things, e.g. hooking into an event loop.
* Would readiness callbacks in the high-level API be more or less user-friendly than alternatives: optional blocking, a lock, etc.?
I would consider callbacks to be part of a low-level layer that you wouldn't use directly most of the time. Some user-friendly high-level things such as buffered channels would be provided. Efficiency is a secondary consideration. If it turns out to be a problem, that can be addressed later. -- Greg _______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/QYYHM7I3BZEVO7YH5EAALJBN5Y3GO3QJ/ Code of Conduct: http://python.org/psf/codeofconduct/