Issue222839

classification
Title: TypeError
Type: Severity: normal
Components: None Versions:
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: pedronis Nosy List: bckfnn, pedronis
Priority: low Keywords:

Created on 2000-11-18.19:26:19 by bckfnn, last changed 2000-11-28.12:27:08 by pedronis.

Messages
msg124 (view) Author: Finn Bock (bckfnn) Date: 2000-11-18.19:26:19
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.
msg125 (view) Author: Samuele Pedroni (pedronis) Date: 2000-11-28.12:27:08
(very likely) Instance of now fixed broken sys.path loading.
History
Date User Action Args
2000-11-18 19:26:19bckfnncreate