bytearray constatnts

2011-12-21 Thread Dmitriy Lyubimov
Hello, is there _any_ way to specify an empty byte array (but not NULL)? There also seems to be no way to specify byte array constatnts or convert other constants to bytearray. Is there any reason why the constants and conversions to bytearray disallowed? thanks in advance. -Dmitriy

Re: bytearray constatnts

2011-12-21 Thread Alan Gates
No, bytearray constants are not supported. The reason for not supporting casts to bytearray is we would need a mechanism to describe how to do the casts (are strings stored as UTF-8 or something else, how are numeric values handled?) that we don't have. The reason for not allowing a bytearray