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 the constructors of AST nodes · Issue #105858 · python/cpython Closed Labels stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-parsertype-featureA feature request or enhancementA feature request or enhancement DescriptionCurrently, the constructors for AST nodes accept arbitrary keyword arguments and don't enforce any value: >>> node=ast.FunctionDef(what="is this") >>> node.what 'is this' >>> node.name Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'FunctionDef' object has no attribute 'name' Problems with the current situation:
Proposed solution for 3.13:
Linked PRsReacted by Alex Waygood, Carl Meyer, Tomas R., Oleg Iarygin, chirk and Mikhail Efimov Activity
MetadataMetadataAssigneesLabelsstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-parsertype-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. |