Issue1710

classification
Title: Cannot extend ``_ast.astlist``
Type: crash Severity: normal
Components: Core Versions: Jython 2.7
Milestone:
process
Status: open Resolution: remind
Dependencies: Superseder:
Assigned To: Nosy List: fwierzbicki, jeff.allen, malthe
Priority: low Keywords:

Created on 2011-02-25.17:27:45 by malthe, last changed 2018-03-17.18:28:28 by jeff.allen.

Files
File name Uploaded Description Edit Remove
traceback.log malthe, 2011-02-25.17:27:44 Traceback
Messages
msg6404 (view) Author: Malthe Borch (malthe) Date: 2011-02-25.17:27:44
If you create a module using ``ast.Module([])``, then ``body`` attribute will be an ``_ast.astlist`` object. Try to extend this with anything. You'll get a traceback such as the attached.
msg11828 (view) Author: Jeff Allen (jeff.allen) Date: 2018-03-17.18:28:28
I confirm still fails in 2.7.2a1, but it's not immutable as I expected: one may append, just not extend.

Why isn't this simply a PyList (as in CPython)?
History
Date User Action Args
2018-03-17 18:28:28jeff.allensetnosy: + jeff.allen
messages: + msg11828
2013-02-19 23:18:13fwierzbickisetpriority: low
nosy: + fwierzbicki
resolution: remind
versions: + Jython 2.7, - 25rc4
2011-02-25 17:27:45malthecreate