aboutsummaryrefslogtreecommitdiffhomepage
path: root/site
diff options
context:
space:
mode:
authorGravatar Jon Brandvein <brandjon@google.com>2017-01-03 17:46:51 +0000
committerGravatar John Cater <jcater@google.com>2017-01-03 20:48:07 +0000
commit51564f58edaec2241cff12e02eaeefe67441f9b6 (patch)
treee967f15373166e2aa30f9e890ecbf171294d3c22 /site
parent35e16136d7efe2b0b12690906794d02f6cdf2e8f (diff)
Mention unsupported set syntax
-- PiperOrigin-RevId: 143453922 MOS_MIGRATED_REVID=143453922
Diffstat (limited to 'site')
-rw-r--r--site/versions/master/docs/skylark/concepts.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/site/versions/master/docs/skylark/concepts.md b/site/versions/master/docs/skylark/concepts.md
index 44afa1249d..20ebb72ca2 100644
--- a/site/versions/master/docs/skylark/concepts.md
+++ b/site/versions/master/docs/skylark/concepts.md
@@ -190,6 +190,9 @@ The following Python features are not supported:
* `class` (see [`struct`](lib/globals.html#struct) function)
* `import` (see [`load`](#loading-a-skylark-extension) statement)
* `while`, `yield`
+* set literals (`{2, 4, 6}`) and set comprehensions
+ (`{2*x for x in [1, 2, 3]}`). Instead, call `set` on lists (`set([2, 4, 6])`)
+ and list comprehensions (`set([2*x for x in [1, 2, 3]])`).
* `lambda` and nested functions
* `is` (use `==` instead)
* `try`, `raise`, `except`, `finally` (see [`fail`](lib/globals.html#fail)