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 — Helpers for getting references to singletons · Issue #91927 · python/cpython Closed as not planned Labels DescriptionFeature or enhancement There are lots of places where a new reference to a singleton is needed. This is done in a variety of ways: The proposal is to add another way that can hopefully become idiomatic: The following singletons are considered:
In the internal API, helpers for the following singletons can be added:
Pitch One advantage of using the new helpers is that it abstracts away the necessity to increment the reference count if immortal instances are implemented. Alternatively, if immortal instances aren't implemented and all singletons are made per-interpreter, it will slightly reduce the performance overhead by making sure that the singletons are only looked up once (compared to patterns 3, 4, and 5, where the singletons are obtained twice). Previous discussion Activity
MetadataMetadataAssigneesLabelsProjectsMilestoneRelationshipsDevelopmentIssue 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. |