Message124
There are three classes, BinXInputStream, BinXOutputStream and Object, in a
package named DxFileUtil. The following code sequence will cause TypeError.
JPython 1.1beta4 on java1.2.2 (JIT: symcjit)
Copyright (C) 1997-1999 Corporation for National Research Initiatives
>>> from DxFileUtil import BinXInputStream, BinXOutputStream
>>> from java.io import *
>>> xi = BinXInputStream(FileInputStream("d:/proj/aquarium/data/fish/afish01.y")
)
>>> o = xi.readObject()
>>> o
DxFileUtil.Object@d64fda7c
>>> xo = BinXOutputStream(FileOutputStream("c:/temp/test.x"))
>>> xo.writeObject(o)
Traceback (innermost last):
File "<console>", line 1, in ?
TypeError: writeObject(): 1st arg can't be coerced to DxFileUtil.Object
It seems argument passing is ok except where the formal argument is named
Object. |
|
| Date |
User |
Action |
Args |
| 2008-02-20 17:16:41 | admin | link | issue222839 messages |
| 2008-02-20 17:16:41 | admin | create | |
|