On Apr 25, 5:39 am, "Jack" <[EMAIL PROTECTED]> wrote: > IP2Location_get_all.restype = POINTER(IP2LocationRecord) > IP2LocationObj = IP2Location_open(thisdir + '/IP-COUNTRY-SAMPLE.BIN') > rec = IP2Location_get_all(IP2LocationObj, '64.233.167.99') > print rec.country_short
print rec.contents.country_short -- http://mail.python.org/mailman/listinfo/python-list