diff options
Diffstat (limited to 'site/docs/skylark/backward-compatibility.md')
-rw-r--r-- | site/docs/skylark/backward-compatibility.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/site/docs/skylark/backward-compatibility.md b/site/docs/skylark/backward-compatibility.md index cb9991040d..032588b437 100644 --- a/site/docs/skylark/backward-compatibility.md +++ b/site/docs/skylark/backward-compatibility.md @@ -30,6 +30,7 @@ To check if your code will be compatible with future releases you can: The following are the backward incompatible changes that are implemented and guarded behind flags in the current release: +* [Set constructor](#set-constructor) * [Keyword-only arguments](#keyword-only-arguments) * [Mutating `+=`](#mutating) * [Dictionary concatenation](#dictionary-concatenation) @@ -43,6 +44,18 @@ guarded behind flags in the current release: * [New actions API](#new-actions-api) * [Checked arithmetic](#checked-arithmetic) +### Set constructor + +We are removing the `set` constructor. Use `depset` instead. `set` and `depset` +are equivalent, you just need to do search and replace to update the old code. + +We are doing this to reduce confusion between the specialized +[depset](depsets.md) data structure and Python's set datatype. + +* Flag: `--incompatible_disallow_set_constructor` +* Default: `true` + + ### Keyword-only arguments Keyword-only parameters are parameters that can be called only using their name. |