Discussion:
[Scons-users] Proposal to add one method to SubstitutionEnvironment
x***@quantentunnel.de
2018-05-24 07:33:29 UTC
Permalink
_______________________________________________
Scons-users mailing list
Scons-***@scons.org
https://pairlist4.pair.net/mailman/listinfo/scons-users
x***@quantentunnel.de
2018-05-24 08:10:32 UTC
Permalink
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.

Loading...