1# test builtin slice attributes access
2
3# print slice attributes
4class A:
5    def __getitem__(self, idx):
6        print(idx.start, idx.stop, idx.step)
7
8try:
9    t = A()[1:2]
10except:
11    print("SKIP")
12    raise SystemExit
13
14
15A()[1:2:3]
16
17# test storing to attr (shouldn't be allowed)
18class B:
19    def __getitem__(self, idx):
20        try:
21            idx.start = 0
22        except AttributeError:
23            print('AttributeError')
24B()[:]
25