source:
branches/samba-3.0/source/python/examples/tdbpack/tdbtimetrial.py@
169
| Last change on this file since 169 was 1, checked in by , 19 years ago | |
|---|---|
| File size: 300 bytes | |
| Line | |
|---|---|
| 1 | #! /usr/bin/python2.2 |
| 2 | |
| 3 | def run_trial(): |
| 4 | # import tdbutil |
| 5 | from samba.tdbpack import pack |
| 6 | |
| 7 | for i in xrange(500000): |
| 8 | pack("ddffd", (10, 2, "mbp", "martin", 0)) |
| 9 | #s = "\n\0\0\0" + "\x02\0\0\0" + "mbp\0" + "martin\0" + "\0\0\0\0" |
| 10 | |
| 11 | if __name__ == '__main__': |
| 12 | run_trial() |
Note:
See TracBrowser
for help on using the repository browser.
