Friday, 6 September 2013

Using python to dump hexidecimals into YAML

Using python to dump hexidecimals into YAML

Now I'm dumping into a YAML document. It's working as it should for the
most part. When I try to dump a hexadecimal such as "0x2A" it converts to
42. Isn't there any way to maintain it's hexadecimal format? A string
won't work sadly. And int( 0x2A, 16) also just gives me a 42.

No comments:

Post a Comment