[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 with Eryk. os.get_terminal_size() is a
> low-level function. shutil.get_terminal_size() should be used as documented
> at https://docs.python.org/3/library/os.html#os.get_terminal_size
>
> shutil.get_terminal_size() is the high-level function which should
> normally be used, os.get_terminal_size is the low-level
> implementation.
>
> --
> nosy: +berker.peksag
> resolution:  -> not a bug
> stage:  -> resolved
> status: open -> closed
>
> ___
> Python tracker <rep...@bugs.python.org>
> <https://bugs.python.org/issue32463>
> ___
>

--

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32463>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: problems with shutil.py and os.get_terminal_size
type: behavior
versions: Python 3.5

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32463>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
TypeError: a bytes-like object is required, not 'str'

--
components: Extension Modules
messages: 266102
nosy: Dhruve
priority: normal
severity: normal
status: open
title: unable to use socket send and sendall   due to type error
type: behavior
versions: Python 3.5

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27087>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



python 3.5.1 winsound bug

2016-01-08 Thread nick mcelwaine
Dear python team,
On my 64bit windows10 the SND_ASYNC flag doesn’t cause the sound to play 
asynchronously.
Nick McElwaine

Sent from Mail for Windows 10

-- 
https://mail.python.org/mailman/listinfo/python-list