From: SourceForge.net <no...@so...> - 2005-02-28 05:22:04
|
Bugs item #654142, was opened at 2002-12-15 11:33 Message generated for change (Settings changed) made by bzimmer You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=654142&group_id=12867 Category: Core Group: None Status: Open >Resolution: Works For Me Priority: 5 Submitted By: Reinout van Schouwen (reinouts) >Assigned to: brian zimmer (bzimmer) Summary: NPE when converting __dict__ to list Initial Comment: In a project I am working on I want to get a list of items that are in the __dict__ dictionary of an inner class. This produces the NPE shown below. If needed I can provide the code. This happens on both Solaris and Linux JVMs. Jython 2.1 on java1.4.1_01 (JIT: null) Type "copyright", "credits" or "license" for more information. >>> >>> mc = MessageCatalog() >>> mc.ch.__dict__ {'Language-Team': 'Dutch <ver...@nl...>', 'MIME-Version': '1.0', 'POT-Creation-Date': ('2002-12-15 17:27', 1), 'PO-Revision-Date': ('2002-12-15 17:27', 1), 'Content-Transfer-Encoding': '8bit', 'Project-Id-Version': '', 'Content-Type': 'text/plain; charset=utf-8', '# ': '', 'Last-Translator': ''} >>> list(mc.ch.__dict__) Traceback (innermost last): File "<console>", line 1, in ? java.lang.NullPointerException at org.python.core.PyList.toString(PyList.java) at org.python.core.PyObject.__repr__(PyObject.java) at org.python.core.PySystemState.displayhook(PySystemState.java) at org.python.core.PySystemStateFunctions.__call__(PySystemState.java) at org.python.core.PyObject.invoke(PyObject.java) at org.python.core.Py.printResult(Py.java) at org.python.pycode._pyx40.f$0(<console>:1) at org.python.pycode._pyx40.call_function(<console>) at org.python.core.PyTableCode.call(PyTableCode.java) at org.python.core.PyCode.call(PyCode.java) at org.python.core.Py.runCode(Py.java) at org.python.core.Py.exec(Py.java) at org.python.util.PythonInterpreter.exec(PythonInterpreter.java) at org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter.java) at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java) at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java) at jython.JeditConsole.pushLine(JeditConsole.java:58) at jython.LineCommand.doExecute(JeditConsole.java:191) at jython.AbstractCommand.execute(JeditConsole.java:141) at jython.JythonExecutor.run(JythonExecutor.java:298) at java.lang.Thread.run(Thread.java:536) java.lang.NullPointerException: java.lang.NullPointerException ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=654142&group_id=12867 |