could that be a mutable object issue ?

Philippe C. Martin philippecmartin at sbcglobal.net
Sat Feb 19 12:58:18 EST 2005


If I do this:



print 'LEN OF BOOK BEFORE APPEND: ', len(pickle.dumps(self.__m_rw))
self.__m_rw.books.append( [p_col1,p_col2,p_col3] )
print 'LEN OF BOOK AFTER APPEND: ', len(pickle.dumps(self.__m_rw))

I get the same length before and after append.

when I print self.__m_rw.books, I see my 'appends' in there, yet the
pickled object does not change.

Any clue ?

Thanks


Philippe



-- 
***************************
Philippe C. Martin
SnakeCard LLC
www.snakecard.com
***************************




More information about the Python-list mailing list