[New-bugs-announce] [issue2505] Restrict attributes of _ast nodes
Georg Brandl
report at bugs.python.org
Sat Mar 29 14:38:10 CET 2008
New submission from Georg Brandl <georg at python.org>:
This patch adds two things to the _ast module:
* Nodes can be initialized with keyword arguments:
m = _ast.Module(body=[...])
* Only attributes that are in _fields or _attributes can be set on nodes.
Martin, what do you think?
----------
assignee: loewis
components: Extension Modules
files: ast-attrs.diff
keywords: patch
messages: 64691
nosy: georg.brandl, loewis
severity: normal
status: open
title: Restrict attributes of _ast nodes
type: behavior
versions: Python 2.6, Python 3.0
Added file: http://bugs.python.org/file9887/ast-attrs.diff
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2505>
__________________________________
More information about the New-bugs-announce
mailing list