[issue32463] problems with shutil.py and os.get_terminal_size

2018-05-21 Thread Nick McElwaine
Nick McElwaine <nmcelwa...@gmail.com> added the comment: Thankyou for clearing that up! On 18 May 2018 at 13:05, Berker Peksag <rep...@bugs.python.org> wrote: > > Berker Peksag <berker.pek...@gmail.com> added the comment: > > Thanks for the report. I agree w

[issue32463] problems with shutil.py and os.get_terminal_size

2017-12-31 Thread Nick McElwaine
New submission from Nick McElwaine <nmcelwa...@gmail.com>: os.get_terminal_size() fails with () or (0) or (1) shutil.sys fails calling it with (sys.__stdout__.fileno()) because sys.__stdout__ is type None -- components: Windows messages: 309276 nosy: Dhruve, paul.moore, steve

[issue27087] unable to use socket send and sendall due to type error

2016-05-22 Thread Nick McElwaine
New submission from Nick McElwaine: import socket # Import socket module s = socket.socket(socket.AF_INET,socket.SOCK_STREAM) s.connect(hostname,port) # this works message = 'text' s.sendall(message) TypeError: a bytes-like object is required, not 'str' s.sendall(message