A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-April/063829.html below:

[Python-Dev] PEP 359: The "make" Statement

[Python-Dev] PEP 359: The "make" Statement [Python-Dev] PEP 359: The "make" StatementSteven Bethard steven.bethard at gmail.com
Tue Apr 18 03:15:18 CEST 2006
On 4/17/06, Russell E. Owen <rowen at cesmail.net> 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
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4