8000 enable deepcopy for DictWrapper · Issue #63 · python-amazon-mws/python-amazon-mws · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jan 4, 2025. It is now read-only.
This repository was archived by the owner on Jan 4, 2025. It is now read-only.

enable deepcopy for DictWrapper #63

@elcolumbio

Description

@elcolumbio

i run into this because i want to dump the response object into a yaml file.

products_api = mws.Products()
products = products_api.get_x()
mydict = vars(products)  # same as products.__dict__
type(mydict['_response_dict'])

this returns
luigipipe.mws.mws.utils.ObjectDict

i think it should return: dict

A very simple approach for problems of that kind i found here.

If you think that is a good idea i can try to understand and fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0