python - Reading string incorrectly from row field using Pypxlib -


heres code similar example given here (pypxlib on github)

from pypxlib import table table = table(file) try:     row in table:          print(row['ident']) finally:     table.close() 

for around half of table reads field correctly, other half gives me wierd output.

~rackc\sgr2\cmp2\sla ~rackc\sgr2\cmp2\run ~rackc\sgr2\cmp2\unl1 ~rackc\sgr2\cmp2\cycles subcool outlet temp rack b subcool outlet temp rack b03 fans rack view  (name below) ~eepr #1 rack b\percent open valve 3 [~tf:refriglib\tsildata_refrig_lib~][~p:3~]~eepr #1 rack b\[~strhistrefriglib_cstpercentopenvlv~]  subcool outlet temp rack d d02 fans rack view (name below) ~eepr #1 rack d\percent open valve 3 [~tf:refriglib\tsildata_refrig_lib~][~p:3~]~eepr #1 rack d\[~strhistrefriglib_cstpercentopenvlv~]  warm fluid temp warm fluid 3 way valve % (name below) ~eepr #1 rack a\effect setpt valve 1 [~tf:refriglib\tsildata_refrig_lib~][~p:1~]~eepr #1 rack a\[~strhistrefriglib_csteffectsetptvlv~] 

anyone have idea on why parse strings this? i'm trying parse data out of control cant change of names of strings.


Comments

Popular posts from this blog

How to start daemon on android by adb -

testing - Detect whether test has failed within fixture -

Angularjs unit testing - ng-disabled not working when adding text to textarea -