Module ImportFrom alias alias alias alias alias alias alias Import alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return CompareEq Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return CompareIn Call AttributeLoad NameLoad attr NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareNotIn NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If Call NameLoad NameLoad NameLoad body Return AttributeLoad NameLoad attr orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad NameLoad attr If Call NameLoad NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse Raise Call NameLoad Call AttributeLoad Str attr NameLoad If CompareGtE NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq NameLoad Str body Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad Str body Raise Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list
N/A __future__ absolute_import division generators nested_scopes print_function unicode_literals with_statement N/A copy pants.option.ranked_value RankedValue OptionValueContainer N/A object N/A N/A A container for option values.

  Implements "value ranking":

     Attribute values can be ranked, so that a given attribute's value can only be changed if
     the new value has at least as high a rank as the old value. This allows an option value in
     an outer scope to override that option's value in an inner scope, when the outer scope's
     value comes from a higher ranked source (e.g., the outer value comes from an env var and
     the inner one from config).

     See ranked_value.py for more details.
   __init__ N/A N/A self N/A N/A N/A N/A self _value_map N/A N/A get_rank N/A N/A self key N/A N/A N/A Returns the rank of the value at the specified key.

    Returns one of the constants in RankedValue.
     N/A N/A N/A N/A N/A self _value_map get key rank N/A is_flagged N/A N/A self key N/A N/A N/A Returns `True` if the value for the specified key was supplied via a flag.

    A convenience equivalent to `get_rank(key) == RankedValue.FLAG`.

    This check can be useful to determine whether or not a user explicitly set an option for this
    run.  Although a user might also set an option explicitly via an environment variable, ie via:
    `ENV_VAR=value ./pants ...`, this is an ambiguous case since the environment variable could also
    be permanently set in the user's environment.

    :param string key: The name of the option to check.
    :returns: `True` if the option was explicitly flagged by the user from the command line.
    :rtype: bool
     N/A N/A N/A N/A self get_rank key N/A RankedValue FLAG N/A is_default N/A N/A self key N/A N/A N/A Returns `True` if the value for the specified key was not supplied by the user.

    I.e. the option was NOT specified config files, on the cli, or in environment variables.

    :param string key: The name of the option to check.
    :returns: `True` if the user did not set the value for this option.
    :rtype: bool
     N/A N/A N/A N/A self get_rank key N/A N/A RankedValue NONE N/A RankedValue HARDCODED N/A update N/A N/A self attrs N/A N/A N/A Set attr values on this object from the data in the attrs dict. N/A N/A k v N/A N/A attrs items N/A N/A N/A N/A self _set k v N/A get N/A N/A self key default N/A None N/A N/A N/A key N/A self _value_map N/A N/A N/A N/A self _get_underlying_value key N/A N/A default N/A _get_underlying_value N/A N/A self key N/A N/A N/A N/A key N/A self _value_map N/A N/A N/A AttributeError key N/A val N/A N/A self _value_map N/A key N/A N/A isinstance val RankedValue N/A N/A N/A val value N/A N/A val N/A _set N/A N/A self key value N/A N/A N/A N/A key N/A self _value_map N/A N/A existing_value N/A N/A self _value_map N/A key N/A existing_rank N/A existing_value rank N/A N/A existing_rank N/A RankedValue NONE N/A N/A isinstance value RankedValue N/A N/A new_rank N/A value rank N/A N/A N/A AttributeError N/A N/A Value must be of type RankedValue: {} format value N/A N/A new_rank existing_rank N/A N/A N/A N/A self _value_map N/A key value N/A __getitem__ N/A N/A self key N/A N/A N/A N/A getattr self key N/A __setattr__ N/A N/A self key value N/A N/A N/A N/A key _value_map N/A N/A N/A N/A N/A super OptionValueContainer self __setattr__ key value N/A N/A N/A self _set key value N/A __getattr__ N/A N/A self key N/A N/A N/A N/A key _value_map N/A N/A N/A AttributeError key N/A N/A N/A self _get_underlying_value key N/A __iter__ N/A N/A self N/A N/A N/A Returns an iterator over all option names, in lexicographical order. N/A name N/A sorted N/A N/A N/A self _value_map keys N/A N/A N/A name N/A __copy__ N/A N/A self N/A N/A N/A Ensure that a shallow copy has its own value map. N/A ret N/A N/A type self N/A N/A ret _value_map N/A N/A copy copy N/A self _value_map N/A ret N/A N/A