Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
Bug description:
importpickleimportsysfromdataclassesimportdataclass,field@dataclassclassState: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 withcProfile, with the message that__main__.State could not be found by.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux