diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-01-16 04:27:54 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-01-16 04:27:54 +0000 |
commit | dfeb2636eb83098ebd621ce2add83ef9e256318f (patch) | |
tree | 5ef416c3410c97cfd95710413de46093e17231ae /python/test.py | |
parent | e3efaf2a9ad82deb1644ccab8c1469719a0c5b65 (diff) | |
download | libgats-dfeb2636eb83098ebd621ce2add83ef9e256318f.tar.gz libgats-dfeb2636eb83098ebd621ce2add83ef9e256318f.tar.bz2 libgats-dfeb2636eb83098ebd621ce2add83ef9e256318f.tar.xz libgats-dfeb2636eb83098ebd621ce2add83ef9e256318f.zip |
Created python bindings. They use the classic python dump/load/dumps/loads
paradigm
Diffstat (limited to 'python/test.py')
-rwxr-xr-x | python/test.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/python/test.py b/python/test.py new file mode 100755 index 0000000..14e8306 --- /dev/null +++ b/python/test.py | |||
@@ -0,0 +1,13 @@ | |||
1 | #!/usr/bin/python | ||
2 | |||
3 | import gats | ||
4 | |||
5 | #print gats.load( open('test.gats', 'rb') ) | ||
6 | |||
7 | #gats.dump( 3.14159, open('out.gats', 'wb') ) | ||
8 | |||
9 | print gats.loads( | ||
10 | gats.dumps( | ||
11 | 500.12345 | ||
12 | ) | ||
13 | ) | ||