Issue1779

classification
Title: Java types not recognised in 'isinstance'
Type: Severity: urgent
Components: Core Versions: Jython 2.5
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: babelmania, fwierzbicki
Priority: low Keywords:

Created on 2011-07-25.12:06:11 by babelmania, last changed 2013-02-25.19:20:47 by fwierzbicki.

Messages
msg6581 (view) Author: Jorgo Bakker (babelmania) Date: 2011-07-25.12:06:10
a PyList implements List, but is not recognized as such?
See below:

---
import array
import java.util.List

b=array.array('i',[1,2,3,4,5])
a=b.tolist()

print isinstance(a,java.util.List) # False
print isinstance(a,list)           # True
History
Date User Action Args
2013-02-25 19:20:47fwierzbickisetpriority: low
nosy: + fwierzbicki
versions: + Jython 2.5, - 2.5.2
2011-07-25 12:06:11babelmaniacreate