File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33print (hash (False ))
44print (hash (True ))
55print ({():1 }) # hash tuple
6+ print ({(1 ,):1 }) # hash non-empty tuple
67print ({1 << 66 :1 }) # hash big int
78print ({- (1 << 66 ):2 }) # hash negative big int
89print (hash in {hash :1 }) # hash function
Original file line number Diff line number Diff line change 1616print (x [2 :3 ])
1717
1818print (x + (10 , 100 , 10000 ))
19+
20+ # construction of tuple from large iterator (tests implementation detail of uPy)
21+ print (tuple (range (20 )))
22+
23+ # unsupported unary operation
24+ try :
25+ + ()
26+ except TypeError :
27+ print ('TypeError' )
28+
29+ # unsupported type on RHS of add
30+ try :
31+ () + None
32+ except TypeError :
33+ print ('TypeError' )
Original file line number Diff line number Diff line change 1010a = (1 , 2 , 3 )
1111c = a * 3
1212print (a , c )
13+
14+ # unsupported type on RHS
15+ try :
16+ () * None
17+ except TypeError :
18+ print ('TypeError' )
You can’t perform that action at this time.
0 commit comments