summaryrefslogtreecommitdiffstats
path: root/Doc/lib/asttable.tex
blob: 7f6ba9f7b4acf4b78ea9ff07e02a81a6625e542a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
\begin{longtableiii}{lll}{class}{Node type}{Attribute}{Value}

\lineiii{Add}{\member{left}}{left operand}
\lineiii{}{\member{right}}{right operand}
\hline 

\lineiii{And}{\member{nodes}}{list of operands}
\hline 

\lineiii{AssAttr}{}{\emph{attribute as target of assignment}}
\lineiii{}{\member{expr}}{expression on the left-hand side of the dot}
\lineiii{}{\member{attrname}}{the attribute name, a string}
\lineiii{}{\member{flags}}{XXX}
\hline 

\lineiii{AssList}{\member{nodes}}{list of list elements being assigned to}
\hline 

\lineiii{AssName}{\member{name}}{name being assigned to}
\lineiii{}{\member{flags}}{XXX}
\hline 

\lineiii{AssTuple}{\member{nodes}}{list of tuple elements being assigned to}
\hline 

\lineiii{Assert}{\member{test}}{the expression to be tested}
\lineiii{}{\member{fail}}{the value of the \exception{AssertionError}}
\hline 

\lineiii{Assign}{\member{nodes}}{a list of assignment targets, one per equal sign}
\lineiii{}{\member{expr}}{the value being assigned}
\hline 

\lineiii{AugAssign}{\member{node}}{}
\lineiii{}{\member{op}}{}
\lineiii{}{\member{expr}}{}
\hline 

\lineiii{Backquote}{\member{expr}}{}
\hline 

\lineiii{Bitand}{\member{nodes}}{}
\hline 

\lineiii{Bitor}{\member{nodes}}{}
\hline 

\lineiii{Bitxor}{\member{nodes}}{}
\hline 

\lineiii{Break}{}{}
\hline 

\lineiii{CallFunc}{\member{node}}{expression for the callee}
\lineiii{}{\member{args}}{a list of arguments}
\lineiii{}{\member{star_args}}{the extended *-arg value}
\lineiii{}{\member{dstar_args}}{the extended **-arg value}
\hline 

\lineiii{Class}{\member{name}}{the name of the class, a string}
\lineiii{}{\member{bases}}{a list of base classes}
\lineiii{}{\member{doc}}{doc string, a string or \code{None}}
\lineiii{}{\member{code}}{the body of the class statement}
\hline 

\lineiii{Compare}{\member{expr}}{}
\lineiii{}{\member{ops}}{}
\hline 

\lineiii{Const}{\member{value}}{}
\hline 

\lineiii{Continue}{}{}
\hline 

\lineiii{Dict}{\member{items}}{}
\hline 

\lineiii{Discard}{\member{expr}}{}
\hline 

\lineiii{Div}{\member{left}}{}
\lineiii{}{\member{right}}{}
\hline 

\lineiii{Ellipsis}{}{}
\hline 

\lineiii{Exec}{\member{expr}}{}
\lineiii{}{\member{locals}}{}
\lineiii{}{\member{globals}}{}
\hline 

\lineiii{For}{\member{assign}}{}
\lineiii{}{\member{list}}{}
\lineiii{}{\member{body}}{}
\lineiii{}{\member{else_}}{}
\hline 

\lineiii{From}{\member{modname}}{}
\lineiii{}{\member{names}}{}
\hline 

\lineiii{Function}{\member{name}}{name used in def, a string}
\lineiii{}{\member{argnames}}{list of argument names, as strings}
\lineiii{}{\member{defaults}}{list of default values}
\lineiii{}{\member{flags}}{xxx}
\lineiii{}{\member{doc}}{doc string, a string or \code{None}}
\lineiii{}{\member{code}}{the body of the function}
\hline

\lineiii{Getattr}{\member{expr}}{}
\lineiii{}{\member{attrname}}{}
\hline 

\lineiii{Global}{\member{names}}{}
\hline 

\lineiii{If}{\member{tests}}{}
\lineiii{}{\member{else_}}{}
\hline 

\lineiii{Import}{\member{names}}{}
\hline 

\lineiii{Invert}{\member{expr}}{}
\hline 

\lineiii{Keyword}{\member{name}}{}
\lineiii{}{\member{expr}}{}
\hline 

\lineiii{Lambda}{\member{argnames}}{}
\lineiii{}{\member{defaults}}{}
\lineiii{}{\member{flags}}{}
\lineiii{}{\member{code}}{}
\hline 

\lineiii{LeftShift}{\member{left}}{}
\lineiii{}{\member{right}}{}
\hline 

\lineiii{List}{\member{nodes}}{}
\hline 

\lineiii{ListComp}{\member{expr}}{}
\lineiii{}{\member{quals}}{}
\hline 

\lineiii{ListCompFor}{\member{assign}}{}
\lineiii{}{\member{list}}{}
\lineiii{}{\member{ifs}}{}
\hline 

\lineiii{ListCompIf}{\member{test}}{}
\hline 

\lineiii{Mod}{\member{left}}{}
\lineiii{}{\member{right}}{}
\hline 

\lineiii{Module}{\member{doc}}{doc string, a string or \code{None}}
\lineiii{}{\member{node}}{body of the module, a \class{Stmt}}
\hline 

\lineiii{Mul}{\member{left}}{}
\lineiii{}{\member{right}}{}
\hline 

\lineiii{Name}{\member{name}}{}
\hline 

\lineiii{Not}{\member{expr}}{}
\hline 

\lineiii{Or}{\member{nodes}}{}
\hline 

\lineiii{Pass}{}{}
\hline 

\lineiii{Power}{\member{left}}{}
\lineiii{}{\member{right}}{}
\hline 

\lineiii{Print}{\member{nodes}}{}
\lineiii{}{\member{dest}}{}
\hline 

\lineiii{Printnl}{\member{nodes}}{}
\lineiii{}{\member{dest}}{}
\hline 

\lineiii{Raise}{\member{expr1}}{}
\lineiii{}{\member{expr2}}{}
\lineiii{}{\member{expr3}}{}
\hline 

\lineiii{Return}{\member{value}}{}
\hline 

\lineiii{RightShift}{\member{left}}{}
\lineiii{}{\member{right}}{}
\hline 

\lineiii{Slice}{\member{expr}}{}
\lineiii{}{\member{flags}}{}
\lineiii{}{\member{lower}}{}
\lineiii{}{\member{upper}}{}
\hline 

\lineiii{Sliceobj}{\member{nodes}}{list of statements}
\hline 

\lineiii{Stmt}{\member{nodes}}{}
\hline 

\lineiii{Sub}{\member{left}}{}
\lineiii{}{\member{right}}{}
\hline 

\lineiii{Subscript}{\member{expr}}{}
\lineiii{}{\member{flags}}{}
\lineiii{}{\member{subs}}{}
\hline 

\lineiii{TryExcept}{\member{body}}{}
\lineiii{}{\member{handlers}}{}
\lineiii{}{\member{else_}}{}
\hline 

\lineiii{TryFinally}{\member{body}}{}
\lineiii{}{\member{final}}{}
\hline 

\lineiii{Tuple}{\member{nodes}}{}
\hline 

\lineiii{UnaryAdd}{\member{expr}}{}
\hline 

\lineiii{UnarySub}{\member{expr}}{}
\hline 

\lineiii{While}{\member{test}}{}
\lineiii{}{\member{body}}{}
\lineiii{}{\member{else_}}{}
\hline 

\lineiii{Yield}{\member{value}}{}
\hline 

\end{longtableiii}