Advertisement
Guest User

Untitled

a guest
Apr 26th, 2012
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. test1.py
  2. --------
  3. print '.'[0]
  4. --------
  5.  
  6. % ~/jython2.5.3b1/bin/jython test1.py
  7. .
  8.  
  9. % ~//jython2.5.3b1/jython -m py_compile test1.py
  10.  
  11. % java -cp ~/jython2.5.3b1/jython.jar:. test1\$py
  12. .
  13.  
  14. test2.py
  15. --------
  16. '.'[0].__class__
  17. --------
  18.  
  19.  
  20. % ~/jython2.5.3b1/bin/jython test2.py
  21. % ~//jython2.5.3b1/jython -m py_compile test2.py
  22. % java -cp ~/jython2.5.3b1/jython.jar:. test2\$py
  23. Exception in thread "main" Traceback (most recent call last):
  24. File "test2$py", line 1, in <module>
  25. java.lang.NullPointerException
  26. at org.python.core.PyObject.object___findattr__(PyObject.java:3699)
  27. at org.python.core.PyObject.__findattr_ex__(PyObject.java:887)
  28. at org.python.core.PyObject.__getattr__(PyObject.java:923)
  29. at test2$py.f$0(/home/joel/software/tests/test2.py:1)
  30. at test2$py.call_function(/home/joel/software/tests/test2.py)
  31. at org.python.core.PyTableCode.call(PyTableCode.java:165)
  32. at org.python.core.PyCode.call(PyCode.java:18)
  33. at org.python.core.imp.createFromCode(imp.java:386)
  34. at org.python.core.imp.createFromCode(imp.java:357)
  35. at org.python.core.Py.runMain(Py.java:964)
  36. at test2$py.main(/home/joel/software/tests/test2.py)
  37.  
  38. java.lang.NullPointerException: java.lang.NullPointerException
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement