[Python-Dev] PEP 455: TransformDict
ncoghlan at gmail.com
Sun Sep 15 16:55:27 CEST 2013
On 16 September 2013 00:45, Serhiy Storchaka <storchaka at gmail.com> wrote:
> 15.09.13 16:57, Antoine Pitrou написав(ла):
>> I don't really care. What's the point in the end? TransformDict is
>> non-trivial to implement, while the so-called "TransformSet" is just a
>> dict with a different API.
> I don't see a difference. To me TransformDict is just a dict (or two).
I think it's best to hold off a TransformSet, since you can trivially
emulate it by setting the values in a TransformDict to None (that's
how Python itself lived without a set type for so long: people just
used dicts with all the values set to None).
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
More information about the Python-Dev