--- Clay Culver <clay@idleengineer.net> wrote:
I'm a bit puzzled by this, too, as comments in dict.hpp indicate:
// dict() -> new empty dictionary. // dict(mapping) -> new dictionary initialized from a mapping object's // (key, value) pairs. // dict(seq) -> new dictionary initialized as if via:
... Thanks, that did it. I'm still a bit baffled by that as well. Certainly in Python that's how it's done: calling the constructor explicitly will perform a deep copy, giving you a new object.
http://www.boost.org/libs/python/doc/tutorial/doc/html/python/object.html Look for "Beware" and "astute". __________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail