Interprocess Communication between Python and D

jfondren julian.fondren at gmail.com
Thu Jun 24 06:03:04 UTC 2021


On Thursday, 24 June 2021 at 05:53:51 UTC, jfondren wrote:
> Server said: [15, 16, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
> 4, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 186, 72, 12, 0]

Some alternatives:

Server said: 
\0f\0c\00\00\00\01\00\00\00\00\00\01\00\00\00\00\00\00\00\00\04\00\00\00\00\00\00\00

from:

```d
ubyte[1024] buffer;
...
writefln("Server said: %(\\%02x%)", buffer[0 .. received]);
```

Server said: 
"\x0F\f\0\0\0\x01\0\0\0\0\0\x01\0\0\0\0\0\0\0\0\x04\0\0\0\0\0\0\0"

from:

```d
char[1024] buffer;
...
writefln("Server said: %(%s%)", [buffer[0 .. received]]);
```


More information about the Digitalmars-d mailing list