File tree Expand file tree Collapse file tree 1 file changed +76
-0
lines changed
Expand file tree Collapse file tree 1 file changed +76
-0
lines changed Original file line number Diff line number Diff line change 1+ class Foo (tuple ):
2+ @staticmethod
3+ def __new__ (cls , initialValue = (0 ,0 )):
4+ return tuple .__new__ (cls , initialValue )
5+
6+
7+ class Bar (tuple ):
8+ def __init__ (self , initialValue = (0 ,0 )):
9+ super (tuple , self ).__init__ (initialValue )
10+ super (tuple , self ).count (items , stuff = "thneed" )
11+
12+ @staticmethod
13+ def somefunc (arg , arrg = pirate ):
14+ pass
15+
16+
17+ list (map (str , range (100 )))
18+ [str (i ) for i in range (100 )]
19+
20+ sâomething (arg = 22 )
21+
22+ def sâomething ():
23+ pass
24+
25+ class sâomething (object ):
26+ pass
27+
28+
29+ list (map (str , range (100 )))
30+ [str (i ) for i in range (100 )]
31+
32+ super (arg1 = 1 )(arg2 = 2 )
33+ list abs , map
34+ some .None NotImplemented
35+
36+ print (file = None )
37+ print __class__
38+ print keyword
39+ print __init__
40+ print (foobar )
41+
42+ __init__ . something ()
43+
44+ callback (print )
45+ callback (range )
46+
47+ .__init__
48+ __init__ [2 ]
49+
50+
51+ @ deco . __init__ (call = some ) # rator
52+ def function ():
53+ pass
54+
55+
56+ mod .func ()
57+ mod .submod .func ()
58+ func ().func2 ().attr
59+ mod .func ().attr .attr2 .func2 ()
60+
61+ range (foo , bar )
62+ (...)
63+
64+ __exit__
65+ print foobar
66+ Привет_мир () or 我喜欢奶酪 () or Kolbász_finom ()
67+
68+ bool
69+
70+ class MyWarning (Warning ):
71+ def __init__ (self , text = 'first part'
72+ 'second part' ):
73+ self .args = (text ,)
74+
75+ foo (text = "line 1"
76+ "line 2" )
You can’t perform that action at this time.
0 commit comments