When using a PickleCol with default={ } the behaviour is not exactly what I would expect:
###################################################################### from sqlobject import * sqlhub.processConnection = connectionForURI( 'sqlite:///:memory:', debug=True ) class t( SQLObject ): x = PickleCol( default={} ) t.createTable( ) row = t( ) print row.x # this will print None ###################################################################### Having a non-empty dict works as expected though. I had a feeling it was related to mutable keyword argument values and the associated problems, but the same problem is there with an empty tuple which is certainly unmutable. Is this a bug or a feature? Cheers, Daniel -- Psss, psss, put it down! - http://www.cafepress.com/putitdown ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss