[issue36293] Nonblocking read sys.stdin raises error

2019-03-30 Thread Martin Panter


Change by Martin Panter :


--
resolution:  -> duplicate

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36293] Nonblocking read sys.stdin raises error

2019-03-30 Thread Martin Panter

Martin Panter  added the comment:

I wasn’t sure about closing it, in case Cyker came back with more details. E.g. 
what was the use case? Were they mislead by the documentation? Do they just 
think the error should be different, or do they think there should be no error 
in this case?

But I suppose we can close this and keep discussion about non-blocking text 
input together in the existing reports.

--
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36293] Nonblocking read sys.stdin raises error

2019-03-15 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

Martin, did you mean to close this as a duplicate?

--
nosy: +terry.reedy

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36293] Nonblocking read sys.stdin raises error

2019-03-15 Thread Martin Panter

Martin Panter  added the comment:

This is the same story as in Issue 35762. Both “sys.stdin” and 
“subprocess.Popen.stderr” (when universal_newlines=True is enabled) use the 
TextIOWrapper class, which I don’t think was implemented with non-blocking mode 
in mind.

Issue 24560 is similar, but is about an older class “codecs.StreamReader”.

--
nosy: +martin.panter
superseder:  -> subprocess.Popen with universal_newlines and nonblocking 
streams fails with "can't concat NoneType to bytes"

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36293] Nonblocking read sys.stdin raises error

2019-03-14 Thread Cyker Way


New submission from Cyker Way :

This piece of code will raise an error:

import os
import sys

os.set_blocking(sys.stdin.fileno(), False)
sys.stdin.read()

Error:

>   TypeError: can't concat NoneType to bytes

Not sure if this is relevant (for a different version of Python): 
https://bugs.python.org/issue24560

--
components: Library (Lib), Unicode
messages: 337940
nosy: cykerway, ezio.melotti, vstinner
priority: normal
severity: normal
status: open
title: Nonblocking read sys.stdin raises error
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com