[issue41901] Added some explaining to pickle errors.

2020-10-02 Thread Marco Sulla
Marco Sulla added the comment: I closed it for this reason: https://github.com/python/cpython/pull/22438#issuecomment-702794261 -- stage: -> resolved status: open -> closed ___ Python tracker _

[issue41901] Added some explaining to pickle errors.

2020-10-01 Thread Marco Sulla
Marco Sulla added the comment: I do not remember the problem I had, but when I experimented with frozendict I get one of these errors. I failed to understand the problem so I added the additional info. Maybe adding an assert in debug mode? It will be visible only to devs. -- __

[issue41901] Added some explaining to pickle errors.

2020-10-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It was intentionally left a generic "cannot pickle 'type' object". Because there are many ways to make an object pickleable, and it is non-pickleable in all other cases. * "missing `__getstate__()` on variable-length object" It creates false impression th

[issue41901] Added some explaining to pickle errors.

2020-10-01 Thread Marco Sulla
New submission from Marco Sulla : All pickle error messages in typeobject.c was a generic "cannot pickle 'type' object". Added some explaining for every individual error. -- components: Interpreter Core messages: 377747 nosy: Marco Sulla priority: normal pull_requests: 21494 severity: