Issue1910
Created on 2012-06-07.18:57:46 by larsga, last changed 2014-05-22.01:34:25 by zyasoft.
msg7185 (view) |
Author: Lars Marius Garshol (larsga) |
Date: 2012-06-07.18:57:45 |
|
The following expression:
[z for (idcol, sql(prev_id)) in a]
causes the compiler to crash with the following traceback, regardless of whether it's entered in the interpreter or loaded in a .py file.
java.lang.ArrayIndexOutOfBoundsException: 1
at org.python.objectweb.asm.Frame.a(Unknown Source)
at org.python.objectweb.asm.Frame.a(Unknown Source)
at org.python.objectweb.asm.MethodWriter.visitMaxs(Unknown Source)
at org.python.compiler.Code.visitMaxs(Code.java:151)
at org.python.compiler.ClassFile.endMethods(ClassFile.java:101)
at org.python.compiler.ClassFile.write(ClassFile.java:122)
at org.python.compiler.Module.write(Module.java:626)
at org.python.compiler.Module.compile(Module.java:683)
at org.python.compiler.Module.compile(Module.java:660)
at org.python.compiler.LegacyCompiler$LazyLegacyBundle.ostream(LegacyCompiler.java:64)
at org.python.compiler.LegacyCompiler$LazyLegacyBundle.saveCode(LegacyCompiler.java:58)
at org.python.core.CompilerFacade.compile(CompilerFacade.java:33)
at org.python.core.Py.compile_flags(Py.java:1651)
at org.python.core.Py.compile_command_flags(Py.java:1697)
|
msg7703 (view) |
Author: Frank Wierzbicki (fwierzbicki) |
Date: 2013-02-19.21:37:57 |
|
Confirmed. It *is* an invalid expression for CPython 2.7, but it shouldn't cause a crash (just a parser error).
|
msg8544 (view) |
Author: Jim Baker (zyasoft) |
Date: 2014-05-22.01:34:25 |
|
Target beta 4
CPython:
$ python
Python 2.7.5 (default, Aug 25 2013, 00:04:04)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> [z for (idcol, sql(prev_id)) in a]
File "<stdin>", line 1
SyntaxError: can't assign to function call
Jython 2.7 has the same issue reported by the OP
|
|
Date |
User |
Action |
Args |
2014-05-22 01:34:25 | zyasoft | set | resolution: accepted messages:
+ msg8544 nosy:
+ zyasoft |
2013-11-01 23:55:25 | santa4nt | set | nosy:
+ santa4nt |
2013-10-27 07:26:55 | jeff.allen | set | title: NewInterface -> ArrayIndexOutOfBounds in compiler due to list comprehension |
2013-10-25 21:29:45 | jeff.allen | set | nosy:
- overratedbarrel, tiresomedaybook |
2013-10-25 21:28:21 | jeff.allen | set | files:
- sa16.html |
2013-10-25 21:28:17 | jeff.allen | set | files:
- test1.html |
2013-10-25 21:28:13 | jeff.allen | set | messages:
- msg8089 |
2013-10-25 21:28:03 | jeff.allen | set | messages:
- msg8085 |
2013-08-26 15:18:09 | tiresomedaybook | set | files:
+ sa16.html nosy:
+ tiresomedaybook messages:
+ msg8089 title: Interface -> NewInterface |
2013-08-22 15:27:41 | overratedbarrel | set | files:
+ test1.html nosy:
+ overratedbarrel messages:
+ msg8085 title: ArrayIndexOutOfBounds in compiler due to list comprehension -> Interface |
2013-02-19 21:37:57 | fwierzbicki | set | priority: normal assignee: fwierzbicki versions:
+ Jython 2.5, Jython 2.7, - 2.5.3b1 messages:
+ msg7703 nosy:
+ fwierzbicki |
2012-06-18 07:51:27 | int3 | set | nosy:
+ int3 |
2012-06-07 18:59:02 | larsga | set | title: ArrayIndexOutOfBounds -> ArrayIndexOutOfBounds in compiler due to list comprehension |
2012-06-07 18:57:46 | larsga | create | |
|