[Python-ideas] Yielding through context managers (original) (raw)
Nick Coghlan ncoghlan at gmail.com
Sun Jan 6 12:37:11 CET 2013
- Previous message: [Python-ideas] Yielding through context managers
- Next message: [Python-ideas] Yielding through context managers
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sun, Jan 6, 2013 at 8:20 PM, Laurens Van Houtven <_ at lvh.cc> wrote:
Hi Nick,
When you say "high latency" (in exit), what does "high" mean? Is that order of magnitude what exit usually means now, or network IO included? (Use case: distributed locking and remotely stored locks: it doesn't take a long time on network scales, but it can take a long time on CPU scales.)
The status quo can only be made to work for in-memory locks. If the release step involves network access, then it's closer to the "database transaction" use case, because the exit method may need to block.
Cheers, Nick.
-- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
- Previous message: [Python-ideas] Yielding through context managers
- Next message: [Python-ideas] Yielding through context managers
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]