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 — Improve Testing For Importing Multiple Extension Modules From One File (and Deal With _testimportmultiple.c) · Issue #124978 · python/cpython Open Labels 3.14bugs and security fixesbugs and security fixesextension-modulesC modules in the Modules dirC modules in the Modules dirtestsTests in the Lib/test dirTests in the Lib/test dir Description(low priority) The capability of loading multiple extension modules from a single .so file was added over a decade ago. AFAIK the feature wasn't actually tested at all for several years. The PEP 489 implementation added some test coverage, but only indirectly, superficially, and (perhaps) unintentionally. Even then, the feature wasn't tested for single-phase init modules until a couple years ago and, again, only indirectly, superficially, and unintentionally. (FWIW, I'm not sure the feature is meaningfully documented at all.) Here's the related history: (expand)
At the time we added the feature originally, we also added an example implementation: With all that in mind, we should consider improving test coverage of the feature, and use To be clear, sorting this out is fairly low priority. We have basic coverage of the feature, I'm not sure it's very widely used, and the status quo isn't causing any problems. (Honestly, I've created this issue only because I noticed Here's how I think we should proceed:
We should be sure the following is tested:
We should be sure that the new tests include whatever The modules for each case could all be in a single file, i.e. the existing Again, the feature is actually tested currently, albeit indirectly and only superficially, through Activity
MetadataMetadataAssigneesLabels3.14bugs and security fixesbugs and security fixesextension-modulesC modules in the Modules dirC modules in the Modules dirtestsTests in the Lib/test dirTests in the Lib/test dir 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. |