frozendict

Nathan Rice nathan.alexander.rice at gmail.com
Thu Feb 9 17:50:51 CET 2012


On Thu, Feb 9, 2012 at 11:35 AM, Ian Kelly <ian.g.kelly at gmail.com> wrote:
> On Thu, Feb 9, 2012 at 8:19 AM, Nathan Rice
> <nathan.alexander.rice at gmail.com> wrote:
>> As I said, two dictionaries created from the same input will be the
>> same...
>
> That's an implementation detail, not a guarantee.  It will hold for
> current versions of CPython but not necessarily for other Python
> implementations.

That is true.  The implications of the function that creates
dictionaries being non-deterministic are a little scary though, so I
suspect that it will hold :)

Nathan



More information about the Python-list mailing list