Discussion:
[Pyparsing] Problem with .dump()
mlist @dslextreme.com
2015-04-21 18:25:20 UTC
Permalink
Thanks for all the help with my previous problem. Now I almost have it
parsing everything I want, but I have a display problem. When I print
result.track.dump(), instead of everything printing out nicely in a
hierarchy, everything prints out as a list, i.e. [[ bunch o' data]]. I *had* it
displaying correctly before, so I am sure that it has something to do with
grouping or ResultNames. However, I haven't been able to fix the problem
via trial and error.

Since the script is rather long now, I pasted it to my pastern - Pastebin -
pyparsing script <http://pastebin.com/u8XVEtxt>
mlist @dslextreme.com
2015-04-21 22:30:14 UTC
Permalink
For some reason pastern says my paste has been removed, so I am sharing it
on Dropbox <https://www.dropbox.com/s/s4chl173yi4xyj8/foo.py?dl=0>
Post by mlist @dslextreme.com
Thanks for all the help with my previous problem. Now I almost have it
parsing everything I want, but I have a display problem. When I print
result.track.dump(), instead of everything printing out nicely in a
hierarchy, everything prints out as a list, i.e. [[ bunch o' data]]. I
*had* it displaying correctly before, so I am sure that it has something
to do with grouping or ResultNames. However, I haven't been able to fix
the problem via trial and error.
Since the script is rather long now, I pasted it to my pastern - Pastebin
- pyparsing script <http://pastebin.com/u8XVEtxt>
Robin Siebler
2015-04-22 03:07:59 UTC
Permalink
I was able to revert to a previous save and everything displays
correctly now. :)
Tuesday, April 21, 2015 3:30 PM
For some reason pastern says my paste has been removed, so I am
sharing it on Dropbox
<https://www.dropbox.com/s/s4chl173yi4xyj8/foo.py?dl=0>
Tuesday, April 21, 2015 11:25 AM
Thanks for all the help with my previous problem. Now I almost have
it parsing everything I want, but I have a display problem. When I
print result.track.dump(), instead of everything printing out nicely
in a hierarchy, everything prints out as a list, i.e. [[ bunch o'
data]]. I *had* it displaying correctly before, so I am sure that it
has something to do with grouping or ResultNames. However, I haven't
been able to fix the problem via trial and error.
Since the script is rather long now, I pasted it to my pastern -
Pastebin - pyparsing script <http://pastebin.com/u8XVEtxt>
--
Sent with Postbox <http://www.getpostbox.com>
Continue reading on narkive:
Loading...