Pickling objects

前端 未结 2 1053
长发绾君心
长发绾君心 2021-01-28 21:10

I need to pickle object [wxpython frame object] and send it as a prameter to this function apply_async on multiproccessing pool module could someone provide me an example how c

2条回答
  •  一整个雨季
    2021-01-28 21:32

    I don't believe that wxPython objects can be pickled. They are just wrappers around C objects, which contain lots of pointers and other stateful stuff. The pickle module doesn't know enough about them to be able to restore their state afterwards.

提交回复
热议问题