On Wed, Aug 27, 2008 at 9:50 PM, Curt Hagenlocher <[EMAIL PROTECTED]>wrote:

> Two more ideas:
>
> 1) Try passing a list of numbers.  You can trivially get this from the
> buffer by saying
> a = map(lambda c: ord(c), buf)
> 2) Try passing a BCL array of bytes.  This is almost as easy:
> import System
> a = System.Array[System.Byte](map(lambda c: ord(c), b))
>
> 1) gave
 TypeError: Specified cast is not valid.
  again.

2) implemented as:
     from System import Array,Byte
     a = Array[Byte](map(lambda c: ord(c),elem))
     p.AppendChunk(a)
gives:
 SystemError: Unexpected VarEnum 8209.

which is new, at least.
--
VC
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to