Issue1671431
Created on 2007-03-01.05:45:41 by batyi, last changed 2007-04-25.06:02:25 by cgroves.
Messages | |||
---|---|---|---|
msg1521 (view) | Author: Petr Gladkikh (batyi) | Date: 2007-03-01.05:45:41 | |
With latest beta 2.2 (source revision 3133) I have created database connection object as follows: dbConn = zxJDBC.connect(uri, username, password, driver) However subsequent dir(dbConn) causes following exception AttributeError: 'list' object has no attribute 'keys' at org.python.core.Py.AttributeError(Unknown Source) at org.python.core.PyObject.noAttributeError(Unknown Source) at org.python.core.PyObject.__getattr__(Unknown Source) at org.python.core.PyObject.invoke(Unknown Source) at org.python.core.PyDictionary.dict_update(Unknown Source) at org.python.core.PyDictionary.update(Unknown Source) at org.python.core.PyObject.addKeys(Unknown Source) at org.python.core.PyObject.__rawdir__(Unknown Source) at org.python.core.PyObject.__dir__(Unknown Source) at org.python.core.__builtin__.dir(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.python.core.PyReflectedFunction.__call__(Unknown Source) at org.python.core.PyReflectedFunction.__call__(Unknown Source) at org.python.core.PyObject.__call__(Unknown Source) at org.python.pycode._pyx0.f$0(src/py/main.py:107) at org.python.pycode._pyx0.call_function(src/py/main.py) at org.python.core.PyTableCode.call(Unknown Source) at org.python.core.PyCode.call(Unknown Source) at org.python.core.Py.runCode(Unknown Source) at org.python.core.__builtin__.execfile_flags(Unknown Source) at org.python.util.PythonInterpreter.execfile(Unknown Source) --- Exception should not be thrown as dir(x) is expected to work with any Python object. |
|||
msg1522 (view) | Author: Charlie Groves (cgroves) | Date: 2007-04-25.06:02:25 | |
Fixed in r3189. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2007-03-01 05:45:41 | batyi | create |
Supported by Python Software Foundation,
Powered by Roundup