Pretty print is not functioning #14

Closed
rishid opened this Issue Dec 24, 2012 · 1 comment

Projects

None yet

2 participants

@rishid
rishid commented Dec 24, 2012

Using the head of tree version.

I am running the example here: http://construct.readthedocs.org/en/latest/basics.html#nested

And the 'print x' does not look like output in document.

from construct import *

c = Struct("foo",
     UBInt8("a"),
     UBInt16("b"),
     Struct("bar",
         UBInt8("a"),
         UBInt16("b"),
     )
 )
x = c.parse("ABBabb")
x  
print x
@tomerfiliba tomerfiliba was assigned Dec 29, 2012
@tomerfiliba
Member

Thanks. It strange, I guess someone changed it the repo. Perhaps it's the python3 compatibility. I'll look into it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment