Skip to content

ReadOnly stuffs make many troubles #770

Closed
@tatari-p

Description

When I use captured list or dict by sacred, they often make troubles. (Using pickle, for example.)
I saw a few issues like that, but it seems that they have not solved yet, because of config overriding issues which can be caused by removing ReadOnly stuffs completely.
I think it just can be solved by copying. I think it can be implemented easily, by just modifying capture function only. I mean, when list or dict is used as captured arguments, just copy them and pass to functions, if config overriding issues are critical. In fact, for all cases causing troubles as above, I'm using deepcopy for troubleshooting.
I'm not sure it is a nice solution as I don't know much about core codes of sacred. And I'm not sure if there are other troubles caused by ReadOnly stuffs. If so then this issue cannot be solved completely by modifying capture function.
So, it is a just weak suggestion. I hope you kindly consider it.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions