From: BillWorker 2. <bil...@in...> - 2002-03-15 08:15:54
|
Let me explain myself! In Java if I were to extend AbstractListModel and use an array internalArray to hold my data internally, then for getElementAt() I could do internalArray[i]. The object that I get from the array does not need to be converted to java.lang.Object as it ALWAYS inherits from java.lang.Object However, in Jython I have to either i. ensure that the object that I get from the array (list) is an instance of java.lang.Object or ii. wrap the Python object into a wrapper class that inherits from java.lang.Object This is not obivous to a new Jython programmer who has come from Java! Ashish |