[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Feature proposal: \x## notation in strings
- From: Ralph Hempel <rhempel@...>
- Date: Tue, 10 Mar 2009 19:05:03 -0400
Alexander Gladysh wrote:
After all wouldn't you like to look at something like:
x = struct.pack("Bc0", string.len(s), s)
x = "\x05hello\x00"
String length is usually a dynamic value, therefore it is not very
useful to hardcode it as a hex value into a string literal.
Alexander, I think you are on the same page as the OP here.