Message6560

Author luizribeiro
Recipients luizribeiro
Date 2011-06-25.13:46:20
SpamBayes Score 6.98885e-14
Marked as misclassified No
Message-id <1309009581.36.0.205022221491.issue1764@psf.upfronthosting.co.za>
In-reply-to
Content
Here is the expected output from CPython 2.5:

Python 2.5.2 (r252:60911, Jan 24 2010, 17:44:40) 
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> a = [1,2]
>>> b = [3]
>>> (a + b).foo = 42
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'list' object has no attribute 'foo'

Here is the broken behavior from Jython 2.5.2:

Jython 2.5.2 (Release_2_5_2:7206, Mar 2 2011, 23:12:06) 
[OpenJDK Server VM (Sun Microsystems Inc.)] on java1.6.0_20
Type "help", "copyright", "credits" or "license" for more information.
>>> a = [1,2]
>>> b = [3]
>>> (a + b).foo = 42
java.lang.VerifyError: (class: org/python/pycode/_pyx3, method: f$0 signature: (Lorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;) Unable to pop operand off an empty stack
	at java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2406)
	at java.lang.Class.getConstructor0(Class.java:2716)
	at java.lang.Class.getConstructor(Class.java:1674)
	at org.python.core.BytecodeLoader.makeCode(BytecodeLoader.java:68)
	at org.python.compiler.LegacyCompiler$LazyLegacyBundle.loadCode(LegacyCompiler.java:43)
	at org.python.core.CompilerFacade.compile(CompilerFacade.java:34)
	at org.python.core.Py.compile_flags(Py.java:1703)
	at org.python.core.Py.compile_command_flags(Py.java:1749)
	at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java:52)
	at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java:46)
	at org.python.util.InteractiveConsole.push(InteractiveConsole.java:110)
	at org.python.util.InteractiveConsole.interact(InteractiveConsole.java:90)
	at org.python.util.jython.run(jython.java:317)
	at org.python.util.jython.main(jython.java:129)

java.lang.VerifyError: java.lang.VerifyError: (class: org/python/pycode/_pyx3, method: f$0 signature: (Lorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;) Unable to pop operand off an empty stack


The same broken behavior applies to versions 2.5.1 and 2.5.0. Version 2.2.1 matches with the expected output, though:

Jython 2.2.1 on java1.6.0_20
Type "copyright", "credits" or "license" for more information.
>>> a = [1,2]
>>> b = [3]
>>> (a + b).foo = 42
Traceback (innermost last):
  File "<console>", line 1, in ?
AttributeError: 'list' object has no attribute 'foo'
History
Date User Action Args
2011-06-25 13:46:21luizribeirosetmessageid: <1309009581.36.0.205022221491.issue1764@psf.upfronthosting.co.za>
2011-06-25 13:46:21luizribeirosetrecipients: + luizribeiro
2011-06-25 13:46:21luizribeirolinkissue1764 messages
2011-06-25 13:46:20luizribeirocreate