[Stackless] Problem Pickling Channels

Andrew Francis andrewfr_ice at yahoo.com
Sun Sep 18 18:26:33 CEST 2005


Hello Colleagues:

I wrote a program to pickle objects that contained 
a member variable that is a channel, and received
an error.

I wrote the following test program

c = stackless.channel()
pickle.dumps(c)

and received the following error:

 File "C:\Program Files\ActiveState Komodo
3.1\dbgp\bin\pydbgp.py", line 220, in __main__
    sys.exit( main(sys.argv) )
  File "C:\Program Files\ActiveState Komodo
3.1\dbgp\bin\pydbgp.py", line 200, in main
    dbgp.client.runWithoutDebug(args, interactive,
host, port, idekey, logLevel)
  File "C:\Program Files\ActiveState Komodo
3.1\dbgp\pythonlib\dbgp\client.py", line 3316, in
runWithoutDebug
    h_execfile(debug_args[0], debug_args, module=main)
  File "C:\Program Files\ActiveState Komodo
3.1\dbgp\pythonlib\dbgp\client.py", line 590, in
__init__
    execfile(file, globals, locals)
  File "C:\lab\Experimental\BPELSchedulerTests.py",
line 551, in __main__
    tests.Test17()
  File "C:\lab\Experimental\BPELSchedulerTests.py",
line 530, in Test17
    pickle.dumps(c)
  File "c:\Python23\lib\pickle.py", line 1386, in
dumps
    Pickler(file, protocol, bin).dump(obj)
  File "c:\Python23\lib\pickle.py", line 231, in dump
    self.save(obj)
  File "c:\Python23\lib\pickle.py", line 313, in save
    rv = reduce(self.proto)
  File "c:\Python23\lib\copy_reg.py", line 70, in
_reduce_ex
    state = base(self)
TypeError: channel() takes exactly 0 arguments (1
given)

Cheers,
Andrew


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless



More information about the Stackless mailing list