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 — Deprecate creation of abstract AST nodes · Issue #116021 · 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 DescriptionFeature or enhancementProposal:Currently all of these are allowed: >>> import ast >>> ast.expr() <ast.expr object at 0x10526cce0> >>> ast.stmt() <ast.stmt object at 0x1054508d0> >>> ast.AST() <ast.AST object at 0x105229610> But these are meant to be abstract classes; constructing them is not meaningful. I propose to raise a DeprecationWarning when they are constructed and raise an error a few versions down. (Originally suggested by Cornelius Krupp on discuss.python.) Has this already been discussed elsewhere?I have already discussed this feature proposal on Discourse Links to previous discussion of this feature:https://discuss.python.org/t/proposed-change-to-ast-node-constructors/46531/4 Linked PRsReacted by Kirill Podoprigora and Brian Schubert 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. |