GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Update logging library module lock to use context manager to acquire/release lock. · Issue #109461 · python/cpython Closed Closed Copy link Labels type-featureA feature request or enhancementA feature request or enhancement DescriptionFeature or enhancementProposal:Current implementation relies on both def _acquireLock(): """ Acquire the module-level lock for serializing access to shared data. This should be released with _releaseLock(). """ if _lock: try: _lock.acquire() except BaseException: _lock.release() raise def _releaseLock(): """ Release the module-level lock acquired by calling _acquireLock(). """ if _lock: _lock.release() The majority of usages of The proposal is to alter the usage of For example, _acquireLock() try: ... finally: _releaseLock() proposed usage: with _acquireLock(): ... Has this already been discussed elsewhere?This is a minor feature, which does not need previous discussion elsewhere Links to previous discussion of this feature:No response Linked PRsActivity
MetadataMetadataAssigneesLabelstype-featureA feature request or enhancementA feature request or enhancement ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |