diff options
| author | John R. Lenton <jlenton@gmail.com> | 2014-01-12 15:17:42 +0000 |
|---|---|---|
| committer | John R. Lenton <jlenton@gmail.com> | 2014-01-12 15:17:42 +0000 |
| commit | 0ce03b48a04a7766f8694b1de8a88073542dcc20 (patch) | |
| tree | 3c7f61c4acb5f9907bc977d060b794c4618c313b /tests | |
| parent | 69a818d4183c10e082b3a7a02b258d8aaff42986 (diff) | |
make sets iterable
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/basics/tests/set_iter.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/basics/tests/set_iter.py b/tests/basics/tests/set_iter.py new file mode 100644 index 000000000..296017730 --- /dev/null +++ b/tests/basics/tests/set_iter.py @@ -0,0 +1,5 @@ +s = {1, 2, 3, 4} +l = list(s) +l.sort() +print(l) + |
