repo.or.cz
/
codimension.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
More unit tests
[codimension.git]
/
pythonparser-exp
/
unittest
/
class_members.py
blob
5aa3f615a6654d558e93256a0bbb7cd9f7b47ec8
1
2
class
C
:
3
def
__init__
(
self
):
4
self
.
a
=
1
5
self
.
b
=
2
6
print
"some"
7
8
def
f
(
cls
):
9
cls
.
c
=
3
10
cls
.
d
,
cls
.
e
=
4
,
5
11
12
def
g
():
13
self
.
l
=
0
14
self
.
k
=
6
15
16
class
D
:
17
class
E
:
18
def
__init__
(
s
):
19
s
.
m
=
0
20
(
s
.
n
,
s
.
o
) =
7
,
8
21
s
.
jjj
[
45
] =
732
# Must not appear, that's usage
22
(
s
.
z
.
p
) =
999
# Must not appear, that's usage
23
24
class
F
:
25
26
@staticmethod
27
def
method
(
first
):
28
first
.
one
=
9
29
first
.
two
=
10
30