diff options
author | hjk <qtc-committer@nokia.com> | 2010-04-23 12:12:22 +0200 |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2010-04-27 15:33:17 +0200 |
commit | 400eecf4efc8b46c231b5385dbd6830f9d2e39f7 (patch) | |
tree | 47c18579f4d9c69c4789d9e8e96404da68724ed3 /tests | |
parent | 010b73615c8f49971ff166d201215327824e6d3d (diff) | |
download | qt-creator-400eecf4efc8b46c231b5385dbd6830f9d2e39f7.tar.gz |
debugger: some work on python
Diffstat (limited to 'tests')
-rw-r--r-- | tests/manual/gdbdebugger/python/math.py | 19 | ||||
-rw-r--r-- | tests/manual/gdbdebugger/python/python.pro | 4 |
2 files changed, 23 insertions, 0 deletions
diff --git a/tests/manual/gdbdebugger/python/math.py b/tests/manual/gdbdebugger/python/math.py new file mode 100644 index 0000000000..5b8fbcce44 --- /dev/null +++ b/tests/manual/gdbdebugger/python/math.py @@ -0,0 +1,19 @@ + +def square(a): + x = a * a + return a + +def cube(a): + x = square(a) + x = x * a + x = x + 1 + x = x - 1 + return x + +def main(): + print cube(3) + print cube(4) + print cube(5) + +if __name__ == '__main__': + main() diff --git a/tests/manual/gdbdebugger/python/python.pro b/tests/manual/gdbdebugger/python/python.pro new file mode 100644 index 0000000000..c52f5b0e52 --- /dev/null +++ b/tests/manual/gdbdebugger/python/python.pro @@ -0,0 +1,4 @@ + +TEMPLATE = script +TARGET = math.py +SOURCES += math.py |