Message4997

Author kellrott
Recipients kellrott
Date 2009-08-06.19:01:39
SpamBayes Score 1.3714335e-08
Marked as misclassified No
Message-id <1249585300.73.0.382712603003.issue1427@psf.upfronthosting.co.za>
In-reply-to
Content
Assignment of a newly created ast Node value fails.  The assignment
destination become 'None' rather then accepting the value.

Test case:
Simple code mutation.  Trying manipulate the ast tree to change a
methods call like
a.set( 1 )
to the assignment:
a = 1

By running attached code 'astMutationTest.py' ('unparse.py' code is
obtained from Cpython parse demo code)

the python output is:
Before Mutation

a.set(1)

After Mutation

a = 1


But for Jython:
Before Mutation

a.set(1)

After Mutation

None
History
Date User Action Args
2009-08-06 19:01:40kellrottsetrecipients: + kellrott
2009-08-06 19:01:40kellrottsetmessageid: <1249585300.73.0.382712603003.issue1427@psf.upfronthosting.co.za>
2009-08-06 19:01:40kellrottlinkissue1427 messages
2009-08-06 19:01:39kellrottcreate