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 — site: .pth import lines can no longer read the 'fullname' local variable · Issue #156404 · python/cpython Closed Labels 3.15bugs and security fixesbugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionBug reportPython 3.15 implements PEP 829 and moved Reproducerimport os, site, tempfile with tempfile.TemporaryDirectory() as d: with open(os.path.join(d, "foo.pth"), "w") as f: f.write("import sys; print(fullname)\n") site.addpackage(d, "foo.pth", set()) On 3.14 this prints the path of the Real-world impactEvery wheel built by PEP 829 keeps executing Suggested fixThis is the same class of regression as gh-149671, fixed in f7ab7c4 by injecting the # Inject 'fullname' local variable in the current frame for # compatibility with Python 3.14, where the path of the ".pth" # file being processed was available to import lines under that # name. fullname = filename I have this working locally against Your environment
Linked PRsActivity
MetadataMetadataAssigneesLabels3.15bugs and security fixesbugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error 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. |