It appears that William Herrin via NANOG <[email protected]> said: >Python doesn't work this way. Its memory management is abstracted away >from the programmer and the programmer does not control its precise >structure. For Python to access a DNS packet, the programmer must pack >and unpack an array of bytes using complex software of their own >devising. You can't just tell Python, "This is the complex data >structure these bytes contain, let me access the data without >unpacking it."
The python struct module is pretty fast, since it's written in C. I recently rewrote the abuse.net DNS server in python doing white lies on the fly DNSSEC signing. It's fast enough. R's, John _______________________________________________ NANOG mailing list https://lists.nanog.org/archives/list/[email protected]/message/BGFDLG24XEHD47QE77ST6LY4OXUMHIKS/
