Changes between Initial Version and Version 1 of Ticket #25426, comment 4


Ignore:
Timestamp:
09/22/2015 12:20:33 AM (5 years ago)
Author:
Iru Hwang
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25426, comment 4

    initial v1  
    22
    330. pickling lazy object starts.
    4 1. lazy object is pickled without DJANGO_VERSION_PICKLE_KEY in wrapping user object.
    5 2. related object "profile" is pickled. It also has a reference to the user object. ( profile.user, due to one-to-one relationship)
    6 3. the user object(profile.user) is pickled again with same dict used at step 1. DJANGO_VERSION_PICKLE_KEY is set.
     41. wrapped user object is pickled without DJANGO_VERSION_PICKLE_KEY in its dict. ({{{SimpleLazyObject.__reduce_ex__ #instancemethod}}})
     52. related object "profile" is pickled. It also has a reference to the user object. ( profile.user, due to one-to-one relationship ({{{Model.__reduce__ #instancemethod}}})
     63. the user object(profile.user) is pickled again with same dict used at step 1. DJANGO_VERSION_PICKLE_KEY is set.({{{Model.__reduce__ #instancemethod}}})
    774. pickling the user object fails due to dictionary changed size during iteration.
    885. pickling lazy object fails.
Back to Top