File: test94.py

package info (click to toggle)
pychecker 0.8.19-10
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,484 kB
  • ctags: 2,114
  • sloc: python: 9,968; sh: 98; makefile: 13
file content (54 lines) | stat: -rw-r--r-- 731 bytes parent folder | download | duplicates (7)
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
'docstring'

def f(a):
    a = a
    a.b = a.b
    a.b.c = a.b.c
    a.b.c.d = a.b.c.d
    c = a & a
    c = a | a
    c = a.b | a.b
    c = a.b.c | a.b.c
    c = a ^ a
    c = a.b ^ a.b
    c = a.b.c ^ a.b.c
    c = a / a
    print c

def g():
    a = b = c = 1
    a = a / 2.0
    a /= 2.0
    a = a + b
    a = a & b
    a = a << b
    a = b << a
    print c
    a = str(a)
    a = `a`
    a = -a
    a = ~a

def h():
  a = 1
  a += a
  a -= a
  a *= a

  a = not a
  a = not not a

  a = (1, 2, 3)
  a, b, c = a

def i(a):
    z = hash(a.x) & hash(a.y)
    z = hash(a.x) | hash(a.y)
    z = hash(a.x) ^ hash(a.y)
    return z

def j(x, y):
    return (x + 1.0) / (y + 2.0)

def k(d):
    return ((1 << d) | (1 << ((d+4) % 8)))