Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dictionary documentation to match implementation [ci skip] #3423

Merged
merged 2 commits into from Aug 25, 2019

Conversation

mwichmann
Copy link
Collaborator

Dictionary is now described as returning a dict only if called with no arguments; if called with arguments it returns a string or list of strings (matching the implementation).

Note env.Dump only takes zero arguments or one, it it not documented as taking the multiple keys, so there's less ambiguity with it. It doesn't say it only returns the string value with one arg, but the example shows it doing so, so no change made here.

Some examples twiddled a little, and in a couple of cases Dictionary is not used any longer - we might as well just index into the construction environment since that works.

Fixes #3156

Signed-off-by: Mats Wichmann mats@linux.com

Contributor Checklist:

  • I have created a new test or updated the unit tests to cover the new/changed functionality.
  • I have updated master/src/CHANGES.txt directory (and read the README.txt in that directory)
  • I have updated the appropriate documentation

Doc-only change.

Dictionary is now described as returning a dict only if called
with no arguments; if called with arguments it returns a string
or list of strings (matching the implmenentation).

Note env.Dump() only takes zero arguments or one, it it not
documented as taking the multiple keys, so there's less ambiguity
with it.

Some examples twiddled a little, and in a couple of cases
Dictionary is not used any longer - we might as well just index
into the construction environment since that works.

Fixes SCons#3156

Signed-off-by: Mats Wichmann <mats@linux.com>
And replaces some written out "construction environment"
and "construction variable" uses with existin entities.

Signed-off-by: Mats Wichmann <mats@linux.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dictionary() implementation does not match documentation
2 participants