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 — Accessing one lazily imported submodule (`lazy import pkg.a`) also imports a later imported `pkg.b` · Issue #158140 · python/cpython Closed Labels interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)release-blockertopic-lazy-importstype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionBug reportBug description:If we do a lazy import of two submodules in the same package tree (like
lazy import pkg.a lazy import pkg.b print(globals()['pkg']) # <lazy_import 'pkg.b'> pkg.a # triggers import of pkg (of course), pkg.b (sketchy!!), pkg.a (of course) This prints: CPython versions tested on:3.15 Operating systems tested on:Linux Linked PRs
Activity
MetadataMetadataAssigneesLabelsinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)release-blockertopic-lazy-importstype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error Projects
MilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402520 — 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. |