Message191628
On Jun 22, 2013, at 01:08 AM, Nick Coghlan wrote:
>Can I vote for something like "__builtin__" as the protocol, rather than
>something entirely specific to serialisation? As in "return the most
>appropriate builtin type with the same value"? Then a converter
>("operator.builtin"?) could coerce builtin subclasses to their base classes
>by default, rather than needing to implement the protocol on every type.
Such a protocol needs a way to deserialize as well. You can't necessarily
assume (or shouldn't impose) that the __init__() can do that conversion. In
any case...
>Such a design would need a PEP, of course.
...yes, definitely. |
|
Date |
User |
Action |
Args |
2013-06-22 01:59:05 | barry | set | recipients:
+ barry, gvanrossum, rhettinger, amaury.forgeotdarc, ncoghlan, pitrou, ezio.melotti, eli.bendersky, ethan.furman, eric.snow |
2013-06-22 01:59:05 | barry | link | issue18264 messages |
2013-06-22 01:59:04 | barry | create | |
|