Message242890
| Author | serhiy.storchaka |
|---|
| Recipients | alexandre.vassalotti, pitrou, serhiy.storchaka |
|---|
| Date | 2015-05-11.10:49:49 |
|---|
| SpamBayes Score | -1.0 |
|---|
| Marked as misclassified | Yes |
|---|
| Message-id | <1431341390.51.0.0928642680419.issue24164@psf.upfronthosting.co.za> |
|---|
| In-reply-to | |
|---|
| Content |
|---|
Pickling of objects of classes whose __new__ mandates the use of keyword-only arguments is supported with protocol 4 (using a new opcode NEWOBJ_EX). But it is possible to implement this feature with protocol 2+ (less efficiently than with NEWOBJ_EX). __new_ex__ is pickled as partial(cls.__new__, cls, *args, **kwargs). Pickled data is compatible with older Python releases up to 2.7 (issue5228).Proposed patch adds support of __new__ with keyword arguments with protocols 2 and 3. |
| History |
|---|
| Date | User | Action | Args |
|---|
| 2015-05-11 10:49:50 | serhiy.storchaka | set | recipients: +serhiy.storchaka,pitrou,alexandre.vassalotti | | 2015-05-11 10:49:50 | serhiy.storchaka | set | messageid: <1431341390.51.0.0928642680419.issue24164@psf.upfronthosting.co.za> | | 2015-05-11 10:49:50 | serhiy.storchaka | link | issue24164 messages | | 2015-05-11 10:49:50 | serhiy.storchaka | create | |
|