zope.copy.copy() copies __parent__ before discarding it
Bug #692280 reported by
Marius Gedminas
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zope.copy |
New
|
Undecided
|
Unassigned |
Bug Description
zope.copy.copy() does
new = clone(obj)
new.__parent__ = None
in that order, which means __parent__ and everything reachable from it (which is more or less the entire ZODB, if your objects have __parent__ references) are first copied and then discarded.
That assumes those objects can be copied, which is not always the case:
https:/
How about making pickler.
To post a comment you must log in.