sgmlop - xmlrpclib - bang

Grzegorz Makarewicz mak at trisoft.com.pl
Wed Oct 31 01:29:11 CET 2007


simple data for simple test - my version fails after 10 loops
after removing sgmlop.pyd from DLLs - everything is working as expected

mak

#python
data='''\
<?xml version="1.0"?>
<methodCall>
  <methodName>mws.ScannerLogout</methodName>
  <params>
    <param>
      <value>
        <i4>7</i4>
      </value>
    </param>
  </params>
</methodCall>
'''

import xmlrpclib

def main():
    i = 1
    while 1:
        print i
        params, method = xmlrpclib.loads(data)
        i+=1
main()




More information about the Python-list mailing list