equal
deleted
inserted
replaced
41 > pass |
41 > pass |
42 > except StandardError, inst: |
42 > except StandardError, inst: |
43 > pass |
43 > pass |
44 > finally: |
44 > finally: |
45 > pass |
45 > pass |
|
46 > |
|
47 > # yield inside a try/finally block is not allowed in Python 2.4 |
|
48 > try: |
|
49 > pass |
|
50 > yield 1 |
|
51 > finally: |
|
52 > pass |
|
53 > try: |
|
54 > yield |
|
55 > pass |
|
56 > finally: |
|
57 > pass |
|
58 > |
46 > EOF |
59 > EOF |
47 $ cat > classstyle.py <<EOF |
60 $ cat > classstyle.py <<EOF |
48 > class newstyle_class(object): |
61 > class newstyle_class(object): |
49 > pass |
62 > pass |
50 > |
63 > |
82 > y = format(x) |
95 > y = format(x) |
83 any/all/format not available in Python 2.4 |
96 any/all/format not available in Python 2.4 |
84 ./non-py24.py:11: |
97 ./non-py24.py:11: |
85 > try: |
98 > try: |
86 no try/except/finally in Python 2.4 |
99 no try/except/finally in Python 2.4 |
|
100 ./non-py24.py:28: |
|
101 > try: |
|
102 no yield inside try/finally in Python 2.4 |
|
103 ./non-py24.py:33: |
|
104 > try: |
|
105 no yield inside try/finally in Python 2.4 |
87 ./classstyle.py:4: |
106 ./classstyle.py:4: |
88 > class oldstyle_class: |
107 > class oldstyle_class: |
89 old-style class, use class foo(object) |
108 old-style class, use class foo(object) |
90 ./classstyle.py:7: |
109 ./classstyle.py:7: |
91 > class empty(): |
110 > class empty(): |