Pytest: FR: Full Object Support in Cache

Created on 4 Feb 2019  路  2Comments  路  Source: pytest-dev/pytest

It would be awesome if the cache had better support for objects. i.e. dicts, classes, dataclasses, etc.

backward compatibility enhancement feature-branch proposal

Most helpful comment

limiting it to json prevents a major set of headaches that complete serialization imposes (cycles, attack vectors

so from my pov there needs to be a good proposal and a sane sheme that we can sanely move to

without that im -1 on it

All 2 comments

limiting it to json prevents a major set of headaches that complete serialization imposes (cycles, attack vectors

so from my pov there needs to be a good proposal and a sane sheme that we can sanely move to

without that im -1 on it

See #2899 - this is unlikely to be supported due to the security and maintenance headaches it would impose.

You can get around that by storing pickled objects as strings if you really want to; the headaches may still exist but then they're your problem not ours.

Was this page helpful?
0 / 5 - 0 ratings