Monday, December 26, 2011

Is Django deleting my python objects?

I've a post_save handler method which stores values in a dictionary,
like

dictionary[instance.id] = some_value

I was writing a post_delete handler to pop the value from the
dictionary, when I found that the value had been already popped.
I don't delete or pop the value anywhere else in the code. dictionary
is the attribute of a singleton object. It lives as long as the server
instance is up.

How could it be possible?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment