3 | | the `value` is a 4096bit binary . I cannot print it (thats the whole point of this ticket). I can convert to hex but then the foreign keys (of course) no longer work. |
| 3 | the `value` is a 32x16bit binary . I cannot print it directly (thats the whole point of this ticket). I can convert to hex: 0a6ce74693a906b6e0535799030a228e (but then the foreign keys (of course) no longer work). The check by UUID is: |
| 4 | {{{ |
| 5 | if len(hex) != 32: |
| 6 | raise ValueError('badly formed hexadecimal UUID string') |
| 7 | }}} |
| 8 | if I do |
| 9 | {{{ |
| 10 | >>>hex |
| 11 | '\nl\xe7F\x93\xa9\x06\xb6\xe0SW\x99\x03\n"\x8e' |
| 12 | >>>len(hex) |
| 13 | 16 |
| 14 | >>>binascii.b2a_hex(hex) |
| 15 | '0a6ce74693a906b6e0535799030a228e' |
| 16 | >>>len(binascii.b2a_hex(hex)) |
| 17 | 32 |
| 18 | }}} |
| 19 | |