Skip to content

Can AttributeAnnotations set __parent__? #11

Closed

Description

This would make it compatible with the IConnection adapter provided by zope.keyreference (assuming the object it annotates is persistent), which could simplify some use cases. AttributeAnnotations is itself not persistent, though the BTree it contains is.

For pickle compatibility this could be a property that reads self.obj.

Are there any downsides to making this generally the case?

(This comes out of a discussion in a private repository.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions