[issue30688] support named Unicode escapes (\N{name}) in re

2018-02-09 Thread Fangyi Zhou

Change by Fangyi Zhou :


--
pull_requests: +5417

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



[issue32731] getpass.getuser() raises an unspecified exceptions (ImportError, OSError, etc)

2018-02-10 Thread Fangyi Zhou

Change by Fangyi Zhou :


--
keywords: +patch
pull_requests: +5426
stage: needs patch -> patch review

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



[issue32731] getpass.getuser() raises an unspecified exceptions (ImportError, OSError, etc)

2018-02-12 Thread Fangyi Zhou

Fangyi Zhou  added the comment:

Hi. I've updated the docs.

I'm wondering if the code needs to be patched as well. Essentially we should 
raise a unified Exception for unable to get the username I suppose?

Please let me know if you have any comments/suggestions on wording. Thanks.

--
nosy: +fangyizhou

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



[issue32795] subprocess.check_output() with timeout does not exit if child process does not generate output after timeout

2018-02-13 Thread Fangyi Zhou

Fangyi Zhou  added the comment:

I think the issue is that the process is not terminated.

If you increase the sleep duration, you would see that the sleep process is not 
killed by SIGKILL.

--
nosy: +fangyizhou

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



[issue32795] subprocess.check_output() with timeout does not exit if child process does not generate output after timeout

2018-02-13 Thread Fangyi Zhou

Fangyi Zhou  added the comment:

As far as I have discovered, the bash process is killed by after the timeout. 
Presumably the pipe is still open due to the sleep process, so in order to 
retrieve any output from stdout/stderr, the read waits on the pipe, hence 
leading to timeout not respected.

We can fix this issue in 2 ways 
(1) kill process tree when timeout happens
(2) force closing the pipes after timeout, but this will leave the 
sub-processes detached and it will be kept running

I don't know which way is better, hopefully someone with more knowledge can 
engage in the discussion.

--

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



[issue32795] subprocess.check_output() with timeout does not exit if child process does not generate output after timeout

2018-02-14 Thread Fangyi Zhou

Change by Fangyi Zhou :


--
keywords: +patch
pull_requests: +5480
stage:  -> patch review

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



[issue32795] subprocess.check_output() with timeout does not exit if child process does not generate output after timeout

2018-02-14 Thread Fangyi Zhou

Fangyi Zhou  added the comment:

I choose to implement the first way. I believe this is in favour in prevention 
of resource leaks and zombie processes.

https://github.com/python/cpython/pull/5684

--

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



[issue5115] Extend subprocess.kill to be able to kill process groups

2018-02-16 Thread Fangyi Zhou

Change by Fangyi Zhou :


--
nosy: +fangyizhou

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



[issue26534] subprocess.check_output with shell=True ignores the timeout

2018-02-16 Thread Fangyi Zhou

Change by Fangyi Zhou :


--
nosy: +fangyizhou

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