S Arrowsmith <si...@chiark.greenend.org.uk> added the comment:

That solution looks sound to me, in particular documenting the semantics of 
repeated init() calls!

As for the underlying problem, it seems to me that an alternative to copying 
the existing structures rather than rebuilding them would be to use 
OrderedDicts. Although I can't think why it might be a preferable alternative, 
other than being a bit clearer that order of insertion can affect behaviour.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue4963>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to