New submission from Марк Коренберг: Unlike socket.sendmsg(), os.writev() does not support generators.
Proof: In [4]: os.writev(1, [b'aa', b'bb', b'\n']) aabb Out[4]: 5 In [5]: os.writev(1, (i for i in [b'aa', b'bb', b'\n'])) ... TypeError: writev() arg 2 must be a sequence ---------- components: Library (Lib) messages: 265536 nosy: mmarkk priority: normal severity: normal status: open title: os.writev() does not accept generators (as buffers argument) type: behavior versions: Python 3.3, Python 3.4, Python 3.5, Python 3.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27020> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com