[Python-Dev] PEP 455: TransformDict (original) (raw)
Nick Coghlan ncoghlan at gmail.com
Sun Sep 15 16:55:27 CEST 2013
- Previous message: [Python-Dev] PEP 455: TransformDict
- Next message: [Python-Dev] PEP 455: TransformDict
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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).
Cheers, Nick.
-- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
- Previous message: [Python-Dev] PEP 455: TransformDict
- Next message: [Python-Dev] PEP 455: TransformDict
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]