From: Tal <re...@bu...> - 2010-11-09 03:00:29
|
New submission from Tal <tal...@th...>: Easy to reproduce: >>> from collections import defaultdict >>> x=defaultdict() >>> x.pop(None,None) Traceback (most recent call last): File "<stdin>", line 1, in <module> java.lang.NullPointerException at org.python.core.PyDictionary.dict_pop(PyDictionary.java:602) at org.python.core.PyDictionary$dict_pop_exposer.__call__(Unknown Source) at org.python.core.PyObject.__call__(PyObject.java:408) at org.python.pycode._pyx20.f$0(<stdin>:1) at org.python.pycode._pyx20.call_function(<stdin>) at org.python.core.PyTableCode.call(PyTableCode.java:165) at org.python.core.PyCode.call(PyCode.java:18) at org.python.core.Py.runCode(Py.java:1253) at org.python.core.Py.exec(Py.java:1297) at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:215) at org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter.java:89) at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java:70) 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:320) at org.python.util.jython.main(jython.java:129) Note: this bugs seems to have been introduced sometime after 2.5.2 beta. ---------- components: Library messages: 6235 nosy: emblemparade severity: normal status: open title: NPE in defaultdict type: crash _______________________________________ Jython tracker <re...@bu...> <http://bugs.jython.org/issue1676> _______________________________________ |