Ticket #30 (new defect)

Opened 7 years ago

Last modified 5 years ago

lone pickling of a function declared inside a new-style class fails

Reported by: mmckerns Owned by: mmckerns
Priority: minor Milestone: pathos-0.5a
Component: dill Keywords:
Cc:

Description (last modified by mmckerns) (diff)

lone pickling of a function declared inside a new-style class fails, if class is not defined in __main__.

Change History

comment:1 Changed 7 years ago by mmckerns

  • Description modified (diff)

bug is something like this:

>>> class _d(object):
...  def _method(self):
...    pass
...

>>> from dill_test2 import _newclass

>>> d = _d.__dict__['_method']
>>> od = _newclass.__dict__['_method']

>>> dill.pickles(d)
True
>>> dill.pickles(od)
False

comment:2 Changed 7 years ago by mmckerns

  • Milestone changed from pathos-0.1a1 to pathos-dev

comment:3 Changed 5 years ago by mmckerns

  • Milestone changed from pathos-dev to pathos-0.2a2
Note: See TracTickets for help on using tickets.