[issue44077] IP_RECVTOS option is missing from socket module

2021-05-08 Thread Georg Sauthoff
New submission from Georg Sauthoff : Currently, the socket module doesn't provide the IP_RECVTOS constant. This constant is needed for receiving the TOS byte (or the DSCP bits) via ancillary data when calling recvmsg() or recvmsg_into(). That means it would be used in a setsockopt() call

[issue1346874] httplib simply ignores CONTINUE

2017-09-02 Thread Georg Sauthoff
Changes by Georg Sauthoff <m...@georg.so>: -- nosy: +gms ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1346874> ___ __

[issue21258] Add __iter__ support for mock_open

2017-01-15 Thread Georg Sauthoff
Georg Sauthoff added the comment: For working around this issue on Python 3.5 it is sufficient to overwrite just the `return_value.__iter__` method of the object returned by `mock_open()` with an iterator that calls the mocked `readline()` method until it returns the empty string. cf. e.g

[issue21258] Add __iter__ support for mock_open

2017-01-15 Thread Georg Sauthoff
Changes by Georg Sauthoff <m...@georg.so>: -- nosy: +gms ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21258> ___ ___ Python

[issue26308] Solaris 10 build issues

2016-02-08 Thread Georg Sauthoff
New submission from Georg Sauthoff: When building on Solaris 10 I had to patch Modules/_posixsubprocess.c -> dirfd issues Modules/socketmodule.c -> sethostname declaration setup.py -> ncurses detection See the attached patch for details. I built it like this: CC=gcc CXX=g++ LDFLAGS