[pypy-issue] [issue1680] ast.NodeTransformer throws AttributeError in pypy only

dmlockhart tracker at bugs.pypy.org
Thu Mar 6 22:16:16 CET 2014


dmlockhart <dmlockhart+pypy at gmail.com> added the comment:

A temporary work around is to modify the Python ast library to set attributes to 
None, instead of deleting them.

In lib-python/2.7/ast.py:

308                     #delattr(node, field)
309                     setattr(node, field, None)


I'm currently working on a fix so that delattr works properly on nodes in _ast.

----------
release:  -> 2.2
status: unread -> chatting

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1680>
________________________________________


More information about the pypy-issue mailing list