On 4/17/06, Russell E. Owen <[EMAIL PROTECTED]> wrote: > At some point folks were discussing use cases of "make" where it was > important to preserve the order in which items were added to the > namespace. > > I'd like to suggest adding an implementation of an ordered dictionary to > standard python (e.g. as a library or built in type). It's inherently > useful, and in this case it could be used by "make".
Not to argue against adding an ordered dictionary somewhere to Python, but for the moment I've been convinced that it's not worth the complication to allow the dict in which the make-statement's block is executed to be customized. The original use case had been XML-building, and there are much nicer solutions using the with-statement than there would be with the make-statement. If you think you have a better (non-XML) use case though, I'm willing to reconsider it. The next update of the PEP will discuss this in more detail, but search c.l.py for some of the discussion. Steve -- Grammar am for people who can't think for myself. --- Bucky Katt, Get Fuzzy _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com