[Scons-users] Proposal to add one method to SubstitutionEnvironment

xyz123 at quantentunnel.de xyz123 at quantentunnel.de
Thu May 24 04:10:32 EDT 2018


I'm sorry for the HTML-Format. Here again as plain text.

Dear scons-users,

I have a use case for an environment which is currently not supported.
I would like to do something like:
    "value of my_key: {my_key}".format(**env)

It is supposed that an environment behaves like a mapping object.
However, to support the unpacking-operator for the above use case the "keys" method is missing.

The definition of the keys-method in "class SubstitutionEnvironment(object)" would solve the issue:


    def keys(self):
        return list(self._dict.keys())


Thank you and best regards.


More information about the Scons-users mailing list