We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import pickle import sys from dataclasses import dataclass, field @dataclass class State: x: list[int] = field(default_factory=list) print(pickle.dumps(State([0])))
The following code will run successfully on it's own, but will fail if run with cProfile, with the message that __main__.State could not be found by.
cProfile
__main__.State
CPython main branch
Linux
The text was updated successfully, but these errors were encountered:
gaogaotiantian
No branches or pull requests
Bug report
Bug description:
The following code will run successfully on it's own, but will fail if run with
cProfile
, with the message that__main__.State
could not be found by.CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
The text was updated successfully, but these errors were encountered: