Re: [Python-Dev] PEP 455: TransformDict

2013年9月15日 07:57:11 -0700

On 16 September 2013 00:45, Serhiy Storchaka <[email protected]> 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).
Cheers,
Nick.
-- 
Nick Coghlan | [email protected] | Brisbane, Australia
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to