Rémy Léone added the comment:
I've tackle the 1. by replacing write/open with os.write/os.open. I still get :
$ python3 simple_incorrect.py
b'\xc3\xa9'
Traceback (most recent call last):
File "simple_incorrect.py", line 32, in <module>
os.write(tun, incorrect_frame)
OSError: [Errno 22] Invalid argument
I'm going to study more in depth the point you raised about tun.c
----------
Added file: http://bugs.python.org/file46886/simple_incorrect.py
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue30430>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com