[issue35510] pickling derived dataclasses

2018-12-16 Thread Satrajit S Ghosh
Satrajit S Ghosh added the comment: Thank you. -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue35510> ___ __

[issue35510] pickling derived dataclasses

2018-12-16 Thread Satrajit S Ghosh
Satrajit S Ghosh added the comment: thank you + serhiy.storchaka while that works in an interactive namespace, it fails in the following setting, which is closer to my dynamic use case. ``` class A: def __init__(self, fields=None): self.B = dc.make_dataclass('B',

[issue35510] pickling derived dataclasses

2018-12-15 Thread Satrajit S Ghosh
New submission from Satrajit S Ghosh : I'm not sure if this is intended behavior or an error. I'm creating dataclasses dynamically and trying to pickle those classes or objects containing instances of those classes. This was resulting in an error, so I trimmed it down to thi